summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c6
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 {