]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
Merge pull request #5958 from keszybz/explicit-log-errno
authorLennart Poettering <lennart@poettering.net>
Mon, 22 May 2017 08:12:18 +0000 (10:12 +0200)
committerGitHub <noreply@github.com>
Mon, 22 May 2017 08:12:18 +0000 (10:12 +0200)
Use explicit errno in log calls

1  2 
src/basic/selinux-util.c

index 380285d57335ec504bff1930b67e3e9748e76741,bc53f812e301fb846f1a32b0423877aa65744857..139e6e21e3e5f4012658cd2080db6b5df1732bbc
@@@ -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;