]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/basic/selinux-util.c
Merge pull request #5958 from keszybz/explicit-log-errno
[thirdparty/systemd.git] / src / basic / selinux-util.c
index 380285d57335ec504bff1930b67e3e9748e76741..139e6e21e3e5f4012658cd2080db6b5df1732bbc 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_use(void) {