diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-10-27 05:47:02 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-10-27 05:47:02 +0200 |
commit | c4dcdb9f4785937f2b73700e66b8cafa452f60a7 (patch) | |
tree | 6f4fc5d360c6ffff57f911e580c6747800958baa /src/main.c | |
parent | ade509ce73ba1de3bcda8b012961a3045f721df7 (diff) |
selinux: automatically load policy if the initrd hasn't done this for us yet
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c index 83cf2e7057..f7d76a2941 100644 --- a/src/main.c +++ b/src/main.c @@ -39,6 +39,7 @@ #include "loopback-setup.h" #include "kmod-setup.h" #include "locale-setup.h" +#include "selinux-setup.h" #include "load-fragment.h" #include "fdset.h" #include "special.h" @@ -895,6 +896,11 @@ int main(int argc, char *argv[]) { arg_running_as = MANAGER_SYSTEM; log_set_target(LOG_TARGET_SYSLOG_OR_KMSG); + /* This might actually not return, but cause a + * reexecution */ + if (selinux_setup(argv) < 0) + goto finish; + if (label_init() < 0) goto finish; } else { |