[Pkg-utopia-commits] r3475 - in /packages/unstable/hal/debian: changelog hal.init hal.postinst

biebl at users.alioth.debian.org biebl at users.alioth.debian.org
Thu Jan 28 00:16:51 UTC 2010


Author: biebl
Date: Thu Jan 28 00:16:49 2010
New Revision: 3475

URL: http://svn.debian.org/wsvn/pkg-utopia/?sc=1&rev=3475
Log:
Make directory containing the pid file world readable. (Closes: #562915)

Modified:
    packages/unstable/hal/debian/changelog
    packages/unstable/hal/debian/hal.init
    packages/unstable/hal/debian/hal.postinst

Modified: packages/unstable/hal/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-utopia/packages/unstable/hal/debian/changelog?rev=3475&op=diff
==============================================================================
--- packages/unstable/hal/debian/changelog (original)
+++ packages/unstable/hal/debian/changelog Thu Jan 28 00:16:49 2010
@@ -2,6 +2,7 @@
 
   * debian/hal.init
     - Source the lsb init-functions after checking if the daemon exists.
+    - Make directory containing the pid file world readable. (Closes: #562915)
   * debian/patches/15-probe-input-segfault-fix.patch
     - Initialize error structure before using it to avoid segfault in
       hald-probe-input. (Closes: #562068)

Modified: packages/unstable/hal/debian/hal.init
URL: http://svn.debian.org/wsvn/pkg-utopia/packages/unstable/hal/debian/hal.init?rev=3475&op=diff
==============================================================================
--- packages/unstable/hal/debian/hal.init (original)
+++ packages/unstable/hal/debian/hal.init Thu Jan 28 00:16:49 2010
@@ -34,7 +34,7 @@
 do_start() {
 	if [ ! -d $PIDDIR ]; then
 		mkdir -p $PIDDIR
-		chmod 770 $PIDDIR
+		chmod 755 $PIDDIR
 		chown $DAEMONUSER:$DAEMONUSER $PIDDIR
 	fi
 	start-stop-daemon --start --oknodo --pidfile $PIDFILE \

Modified: packages/unstable/hal/debian/hal.postinst
URL: http://svn.debian.org/wsvn/pkg-utopia/packages/unstable/hal/debian/hal.postinst?rev=3475&op=diff
==============================================================================
--- packages/unstable/hal/debian/hal.postinst (original)
+++ packages/unstable/hal/debian/hal.postinst Thu Jan 28 00:16:49 2010
@@ -56,6 +56,9 @@
       rmdir --ignore-fail-on-non-empty /var/lib/hal
       rm -f /var/run/hal/acl-list
       rmdir --ignore-fail-on-non-empty /var/run/hal
+      # Make /var/run/hald world readable and ensure this also happens on
+      # upgrades so users can run "service hal status". See #562915
+      chmod 755 /var/run/hald
     fi
 
     if [ -x /etc/init.d/dbus ]; then




More information about the Pkg-utopia-commits mailing list