diff options
Diffstat (limited to 'src/login/logind-session.c')
-rw-r--r-- | src/login/logind-session.c | 4 |
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"); |