diff options
author | Michael Biebl <biebl@debian.org> | 2011-07-01 05:55:57 +0200 |
---|---|---|
committer | Michael Biebl <biebl@debian.org> | 2011-07-28 15:01:41 +0200 |
commit | 25bafad67f6f161921c498a7b77f118920bec971 (patch) | |
tree | aba0a603b0f554bfb5b6011e42a9b600f89979f2 /src | |
parent | 85f19d825e7504676f3a80c78c1d9a7ec35a3b3f (diff) |
Don't show a warning message in non-enforcing mode.
If we fail to load the SELinux policy only log an error message in
enforcing mode.
Diffstat (limited to 'src')
-rw-r--r-- | src/selinux-setup.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/selinux-setup.c b/src/selinux-setup.c index 620c49e686..bc36e765e1 100644 --- a/src/selinux-setup.c +++ b/src/selinux-setup.c @@ -72,12 +72,13 @@ int selinux_setup(char *const argv[]) { return -errno; } else { - log_full(enforce > 0 ? LOG_ERR : LOG_WARNING, "Failed to load SELinux policy."); unlink("/dev/.systemd-relabel-run-dev"); - if (enforce > 0) + if (enforce > 0) { + log_full(LOG_ERR, "Failed to load SELinux policy."); return -EIO; + } } #endif |