diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-09-22 04:05:40 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-09-22 04:05:40 +0200 |
commit | 878587bddd2e9d7ad7890711660164024deaf150 (patch) | |
tree | b36bff74faacf7877769efee324654ebdd4eaa4a /src/selinux-setup.c | |
parent | 4dfc092a7176f74102b6be205f11008e1de59bb3 (diff) |
selinux: reopen log when loading the SELinux policy fails
Diffstat (limited to 'src/selinux-setup.c')
-rw-r--r-- | src/selinux-setup.c | 6 |
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 |