summaryrefslogtreecommitdiff
path: root/src/core/selinux-setup.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-09-10 13:14:56 +0200
committerLennart Poettering <lennart@poettering.net>2012-09-10 13:14:56 +0200
commit2f6f1bc30c528ca7346b4c93f08b65682aa2876f (patch)
tree0080683660ed839c395cb52050a99d8ca5db5645 /src/core/selinux-setup.c
parent7762e02b172913e8af82f6ba013487527413be84 (diff)
selinux: close stdin/stdout/stderr before loading selinux policy
Let's make sure libselinux doesn't spew to stderr
Diffstat (limited to 'src/core/selinux-setup.c')
-rw-r--r--src/core/selinux-setup.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/core/selinux-setup.c b/src/core/selinux-setup.c
index fa025b7268..52df7a7221 100644
--- a/src/core/selinux-setup.c
+++ b/src/core/selinux-setup.c
@@ -79,7 +79,6 @@ int selinux_setup(bool *loaded_policy) {
/* Now load the policy */
before_load = now(CLOCK_MONOTONIC);
r = selinux_init_load_policy(&enforce);
-
if (r == 0) {
char timespan[FORMAT_TIMESPAN_MAX];
char *label;