summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-03-22 01:43:36 +0100
committerLennart Poettering <lennart@poettering.net>2012-03-22 01:43:36 +0100
commitc9d8629baa09f853fbcc44972c9748e70562270c (patch)
tree5d20f60923a622db1a65e4ae39974a9e1ee8bfce /src
parent6ba383fa49e01302dfeae1f5083bb942b055628b (diff)
logind: extend comment about X11 socket symlink
Diffstat (limited to 'src')
-rw-r--r--src/login/logind-session.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/login/logind-session.c b/src/login/logind-session.c
index af9c12dcd5..4e0af8656b 100644
--- a/src/login/logind-session.c
+++ b/src/login/logind-session.c
@@ -391,6 +391,10 @@ static int session_link_x11_socket(Session *s) {
return -ENOENT;
}
+ /* Note that this cannot be in a subdir to avoid
+ * vulnerabilities since we are privileged but the runtime
+ * path is owned by the user */
+
t = strappend(s->user->runtime_path, "/X11-display");
if (!t) {
log_error("Out of memory");