From: Lennart Poettering Date: Mon, 22 May 2017 08:12:18 +0000 (+0200) Subject: Merge pull request #5958 from keszybz/explicit-log-errno X-Git-Tag: v234~178 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=401a38e770cdcf0d2ef23991f67b0cc7c80f6f02;p=thirdparty%2Fsystemd.git Merge pull request #5958 from keszybz/explicit-log-errno Use explicit errno in log calls --- 401a38e770cdcf0d2ef23991f67b0cc7c80f6f02 diff --cc src/basic/selinux-util.c index 380285d5733,bc53f812e30..139e6e21e3e --- a/src/basic/selinux-util.c +++ b/src/basic/selinux-util.c @@@ -50,10 -50,10 +50,10 @@@ DEFINE_TRIVIAL_CLEANUP_FUNC(context_t, 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) { +bool mac_selinux_use(void) { #ifdef HAVE_SELINUX if (cached_use < 0) cached_use = is_selinux_enabled() > 0;