]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
ima-setup: include error cause in failure messages
authorLennart Poettering <lennart@poettering.net>
Thu, 18 Oct 2018 14:11:54 +0000 (16:11 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 18 Oct 2018 14:23:45 +0000 (16:23 +0200)
src/core/ima-setup.c

index 0f9805acb3e25388a619fad59d1c9aac1b0af6ae..d6a49ce100ad8d43cfb86fb65a4c47dde3342343 100644 (file)
@@ -27,17 +27,17 @@ int ima_setup(void) {
         int r;
 
         if (access(IMA_SECFS_DIR, F_OK) < 0) {
-                log_debug("IMA support is disabled in the kernel, ignoring.");
+                log_debug_errno(errno, "IMA support is disabled in the kernel, ignoring: %m");
                 return 0;
         }
 
         if (access(IMA_SECFS_POLICY, W_OK) < 0) {
-                log_warning("Another IMA custom policy has already been loaded, ignoring.");
+                log_warning_errno(errno, "Another IMA custom policy has already been loaded, ignoring: %m");
                 return 0;
         }
 
         if (access(IMA_POLICY_PATH, F_OK) < 0) {
-                log_debug("No IMA custom policy file "IMA_POLICY_PATH", ignoring.");
+                log_debug_errno(errno, "No IMA custom policy file "IMA_POLICY_PATH", ignoring: %m");
                 return 0;
         }