logind: extend comment about X11 socket symlink

This commit is contained in:
Lennart Poettering
2012-03-22 01:43:36 +01:00
parent 6ba383fa49
commit c9d8629baa
+4
View File
@@ -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");