chiark / gitweb /
tests: add tests for environment serialization
[elogind.git] / src / basic / selinux-util.c
index 2a9dd7c8c47bb943974ebc003f6f99e2333391aa..41c8297f9b53e6aa9a54b60b6a9ebd65988bad2a 100644 (file)
@@ -50,7 +50,7 @@ DEFINE_TRIVIAL_CLEANUP_FUNC(context_t, context_free);
 static int cached_use = -1;
 static struct selabel_handle *label_hnd = NULL;
 
-#define log_enforcing(...) log_full(security_getenforce() == 1 ? LOG_ERR : LOG_DEBUG, __VA_ARGS__)
+#define log_enforcing(...) log_full_errno(security_getenforce() == 1 ? LOG_ERR : LOG_DEBUG, errno, __VA_ARGS__)
 #endif
 
 bool mac_selinux_have(void) {