From 9ccab362ff32a93a7d64c65b23718e10e41a52ad Mon Sep 17 00:00:00 2001 From: Michael Biebl Date: Fri, 1 Jul 2011 05:55:57 +0200 Subject: [PATCH] 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. --- src/selinux-setup.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/selinux-setup.c b/src/selinux-setup.c index 9ff27dcd..b6181fb4 100644 --- a/src/selinux-setup.c +++ b/src/selinux-setup.c @@ -59,12 +59,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 -- 2.39.5