From: Lennart Poettering Date: Thu, 22 Mar 2012 00:43:36 +0000 (+0100) Subject: logind: extend comment about X11 socket symlink X-Git-Tag: v183~486 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9d8629baa09f853fbcc44972c9748e70562270c;p=systemd logind: extend comment about X11 socket symlink --- diff --git a/src/login/logind-session.c b/src/login/logind-session.c index af9c12dc..4e0af865 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");