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

slomo at users.alioth.debian.org slomo at users.alioth.debian.org
Tue Sep 25 13:47:14 UTC 2007


Author: slomo
Date: Tue Sep 25 13:47:13 2007
New Revision: 1733

URL: http://svn.debian.org/wsvn/pkg-utopia/?sc=1&rev=1733
Log:
* debian/hal.init:
  + Don't start hal if sysfs is not mounted on /sys or a chrooted session
    is detected.

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

Modified: packages/unstable/hal/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-utopia/packages/unstable/hal/debian/changelog?rev=1733&op=diff
==============================================================================
--- packages/unstable/hal/debian/changelog (original)
+++ packages/unstable/hal/debian/changelog Tue Sep 25 13:47:13 2007
@@ -1,3 +1,11 @@
+hal (0.5.9.1-6) UNRELEASED; urgency=low
+
+  * debian/hal.init:
+    + Don't start hal if sysfs is not mounted on /sys or a chrooted session
+      is detected.
+
+ -- Sebastian Dröge <slomo at debian.org>  Tue, 25 Sep 2007 15:46:11 +0200
+
 hal (0.5.9.1-5) unstable; urgency=low
 
   [ Sjoerd Simons ]

Modified: packages/unstable/hal/debian/hal.init
URL: http://svn.debian.org/wsvn/pkg-utopia/packages/unstable/hal/debian/hal.init?rev=1733&op=diff
==============================================================================
--- packages/unstable/hal/debian/hal.init (original)
+++ packages/unstable/hal/debian/hal.init Tue Sep 25 13:47:13 2007
@@ -55,7 +55,17 @@
 		log_failure_msg "Can't start $DESC - please ensure dbus is running"
 		exit 0
 	fi
-
+	
+	if [ ! -d /sys/kernel ]; then
+		log_failure_msg "Can't start $DESC - sysfs not mounted on /sys"
+		exit 0
+	fi
+	
+	if [ "$(stat -c %d/%i /)" != "$(stat -Lc %d/%i /proc/1/root 2>/dev/null)" ]; then
+		log_failure_msg "Can't start $DESC - detected chrooted session"
+		exit 0
+	fi
+	
 	log_daemon_msg "Starting $DESC" "$NAME"
 	do_start
 	log_end_msg $?




More information about the Pkg-utopia-commits mailing list