[systemd-devel] [PATCH] Reset the context of /run/user/UID to the default. Bug #1097901.
Miroslav Grepl
mgrepl at redhat.com
Thu May 15 05:54:38 PDT 2014
---
src/login/logind-user.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/login/logind-user.c b/src/login/logind-user.c
index 961cbcb..42946ae 100644
--- a/src/login/logind-user.c
+++ b/src/login/logind-user.c
@@ -337,6 +337,7 @@ static int user_mkdir_runtime_path(User *u) {
}
}
+ label_fix(p,false,false);
u->runtime_path = p;
return 0;
@@ -423,7 +424,9 @@ int user_start(User *u) {
log_debug("New user %s logged in.", u->name);
/* Make XDG_RUNTIME_DIR */
+ label_init("/var/run/user");
r = user_mkdir_runtime_path(u);
+ label_finish();
if (r < 0)
return r;
--
1.9.0
More information about the systemd-devel
mailing list