summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/selinux-setup.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/selinux-setup.c b/src/selinux-setup.c
index 2abd99e6a2..a7e1fa4007 100644
--- a/src/selinux-setup.c
+++ b/src/selinux-setup.c
@@ -98,11 +98,13 @@ int selinux_setup(bool *loaded_policy) {
*loaded_policy = true;
} else {
+ log_open();
+
if (enforce > 0) {
- log_error("Failed to load SELinux policy.");
+ log_error("Failed to load SELinux policy. Freezing.");
return -EIO;
} else
- log_debug("Unable to load SELinux policy.");
+ log_debug("Unable to load SELinux policy. Ignoring.");
}
#endif