From 878587bddd2e9d7ad7890711660164024deaf150 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 22 Sep 2011 04:05:40 +0200 Subject: [PATCH] selinux: reopen log when loading the SELinux policy fails --- src/selinux-setup.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/selinux-setup.c b/src/selinux-setup.c index 2abd99e6..a7e1fa40 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 -- 2.39.5