diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-10-18 16:11:54 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-10-18 16:23:45 +0200 |
commit | b435812c642b11ae3650f08bcbc546d459733196 (patch) | |
tree | 0efdf8c2208f95e3674f5fe355d7cd7b4fba12b3 /src/core | |
parent | ima-setup: FOREACH_LINE excorcism (diff) | |
download | systemd-b435812c642b11ae3650f08bcbc546d459733196.tar.xz systemd-b435812c642b11ae3650f08bcbc546d459733196.zip |
ima-setup: include error cause in failure messages
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/ima-setup.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/ima-setup.c b/src/core/ima-setup.c index 0f9805acb3..d6a49ce100 100644 --- a/src/core/ima-setup.c +++ b/src/core/ima-setup.c @@ -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; } |