summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/login/user-runtime-dir.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/login/user-runtime-dir.c b/src/login/user-runtime-dir.c
index 9dde42c30..3ba4af3f2 100644
--- a/src/login/user-runtime-dir.c
+++ b/src/login/user-runtime-dir.c
@@ -10,6 +10,7 @@
#include "mount-util.h"
#include "path-util.h"
#include "rm-rf.h"
+//#include "selinux-util.h"
#include "smack-util.h"
#include "stdio-util.h"
#include "string-util.h"
@@ -180,6 +181,12 @@ int main(int argc, char *argv[]) {
return EXIT_FAILURE;
}
+ r = mac_selinux_init();
+ if (r < 0) {
+ log_error_errno(r, "Could not initialize labelling: %m\n");
+ return EXIT_FAILURE;
+ }
+
umask(0022);
if (streq(argv[1], "start"))