diff options
author | Julien Cristau <jcristau@debian.org> | 2011-12-15 21:24:49 +0100 |
---|---|---|
committer | Julien Cristau <jcristau@debian.org> | 2011-12-15 21:24:49 +0100 |
commit | f6bd87fdf3d3bf4d840fba47f8c99123b071038d (patch) | |
tree | 53cca19d70d01c5e035d890183aa49cc2152bf31 | |
parent | 0ebabb840bf52e5e5347414487668ae26ec16332 (diff) | |
parent | 9b1d91483680a3e9282bffb0aca4a08bd533e36e (diff) | |
download | xorg-f6bd87fdf3d3bf4d840fba47f8c99123b071038d.tar.gz |
Merge branch 'debian-unstable' of git://git.debian.org/git/pkg-xorg/debian/xorg into debian-unstable
Conflicts:
debian/changelog
-rw-r--r-- | debian/changelog | 10 | ||||
-rw-r--r-- | debian/local/Xsession.5 | 7 | ||||
-rw-r--r-- | debian/local/Xsession.d/35x11-common_xhost-local | 10 |
3 files changed, 26 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog index 13dc513..617b193 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,5 +1,13 @@ xorg (1:7.6+10) UNRELEASED; urgency=low + [ Josselin Mouette ] + * debian/local/Xsession.d/35x11-common_xhost-local: add a new script + to the default X session. It will give access to the running X + server to the logged on user. This is useful for gdm3 which does not + give access to $XAUTHORITY outside the session, but can also be of + use for other display managers. Closes: #586685. + + [ Julien Cristau ] * Fixes for xserver-wrapper: - when we drop privileges, don't forget to also reset effective group id, since we're installed setgid root. @@ -9,7 +17,7 @@ xorg (1:7.6+10) UNRELEASED; urgency=low - use major() and minor() macros instead of manually extracting them * Build the X wrapper with hardening enabled. - -- Julien Cristau <jcristau@debian.org> Tue, 01 Nov 2011 15:13:52 +0100 + -- Josselin Mouette <joss@debian.org> Thu, 24 Nov 2011 22:52:19 +0100 xorg (1:7.6+9) unstable; urgency=low diff --git a/debian/local/Xsession.5 b/debian/local/Xsession.5 index 74d6911..2e954bb 100644 --- a/debian/local/Xsession.5 +++ b/debian/local/Xsession.5 @@ -186,6 +186,13 @@ the user's .I $HOME/.Xresources file is merged in the same way. .TP +.I /etc/X11/Xsession.d/35x11\-common_xhost\-local +Give access to the X server to the same user on the local host. +If the +.I xhost +command is available, it will use it to allow any process of the same +user running on the local host to access the X server. +.TP .I /etc/X11/Xsession.d/40x11\-common_xsessionrc Source global environment variables. This script will source anything in diff --git a/debian/local/Xsession.d/35x11-common_xhost-local b/debian/local/Xsession.d/35x11-common_xhost-local new file mode 100644 index 0000000..d127a6c --- /dev/null +++ b/debian/local/Xsession.d/35x11-common_xhost-local @@ -0,0 +1,10 @@ +# This file is sourced by Xsession(5), not executed. + +# If xhost (from x11-xserver-utils) is installed, use it to give access +# to the X server to any process from the same user on the local host. +# Unlike other uses of xhost, this is safe since the kernel can check +# the actual owner of the calling process. + +if type xhost >/dev/null 2>&1; then + xhost +si:localuser:$(id -un) || : +fi |