diff options
author | Ray Strode <rstrode@redhat.com> | 2015-05-05 16:43:44 -0400 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2015-05-26 11:22:24 -0700 |
commit | 76636ac12f2d1dbdf7be08222f80e7505d53c451 (patch) | |
tree | 9d002a1b54081a15e8cf59b6b1d36b75d43582ff /hw | |
parent | 4b4b9086d02b80549981d205fb1f495edc373538 (diff) |
xwayland: default to local user if no xauth file given. [CVE-2015-3164 3/3]
Right now if "-auth" isn't passed on the command line, we let
any user on the system connect to the Xwayland server.
That's clearly suboptimal, given Xwayland is generally designed
to be used by one user at a time.
This commit changes the behavior, so only the user who started the
X server can connect clients to it.
Signed-off-by: Ray Strode <rstrode@redhat.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/xwayland/xwayland.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/xwayland/xwayland.c b/hw/xwayland/xwayland.c index c5bee77d8..bc92beb38 100644 --- a/hw/xwayland/xwayland.c +++ b/hw/xwayland/xwayland.c @@ -702,4 +702,6 @@ InitOutput(ScreenInfo * screen_info, int argc, char **argv) if (AddScreen(xwl_screen_init, argc, argv) == -1) { FatalError("Couldn't add screen\n"); } + + LocalAccessScopeUser(); } |