[boinc] 01/01: A little fix on 36x11-common script, by AgentB <boinc at u4ear.com>

Gianfranco Costamagna locutusofborg-guest at moszumanska.debian.org
Sat Jan 9 10:06:41 UTC 2016


This is an automated email from the git hooks/post-receive script.

locutusofborg-guest pushed a commit to branch master
in repository boinc.

commit 94761a6680e00fbf1d1529cc0825b00a9fb9fde2
Author: Gianfranco Costamagna <costamagnagianfranco at yahoo.it>
Date:   Sat Jan 9 11:05:53 2016 +0100

    A little fix on 36x11-common script, by AgentB <boinc at u4ear.com>
---
 debian/36x11-common_xhost-boinc | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/debian/36x11-common_xhost-boinc b/debian/36x11-common_xhost-boinc
index f5e7407..e7654bb 100644
--- a/debian/36x11-common_xhost-boinc
+++ b/debian/36x11-common_xhost-boinc
@@ -1,9 +1,14 @@
+#
+# Some boinc headers needed so if some poor admin stumbles across this he knows where it came from...
+#
 # This file is sourced by Xsession(5), not executed.
-
+BOINC_USER=boinc
+#
 # If xhost (from x11-xserver-utils) is installed, use it to give access
-# to the X server to the boinc user on the local host so that idle
-# detection is functional.
+# 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:boinc || :
+  id -u $BOINC_USER >/dev/null 2>&1 && xhost +SI:localuser:$BOINC_USER || :
 fi

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-boinc/boinc.git



More information about the pkg-boinc-commits mailing list