commit a27500f768445ce166be327c9e132a2c7eddbb0d Author: Brett Goulder <predatorfreak@dcaf-security.org> Date: Sun May 18 02:53:14 2008 -0400 hal: Run as haldaemon, not root. diff --git a/hal/.md5sum b/hal/.md5sum index e1ad995..adc2128 100644 --- a/hal/.md5sum +++ b/hal/.md5sum @@ -1,3 +1,3 @@ 750cf074e88b6fb7012f26d99cd39b9b hal-0.5.11.tar.gz 7cb56ce5687fa8dcdc870821844240eb hal.conf -cc3d04e7ac09e15f33c530725f43e641 rc.hald +d16e51644aef3590445eb69c3e1214a9 rc.hald diff --git a/hal/Pkgfile b/hal/Pkgfile index 62e562a..9bfb689 100644 --- a/hal/Pkgfile +++ b/hal/Pkgfile @@ -6,7 +6,7 @@ name=hal version=0.5.11 -release=3 +release=4 source=(http://hal.freedesktop.org/releases/$name-$version.tar.gz \ hal.conf rc.hald) diff --git a/hal/rc.hald b/hal/rc.hald index 43629dd..022e0fd 100644 --- a/hal/rc.hald +++ b/hal/rc.hald @@ -5,7 +5,8 @@ case $1 in start) - /usr/sbin/hald --daemon=yes --use-syslog + # Run as haldaemon, not root. + su haldaemon -s /bin/sh -c '/usr/sbin/hald --daemon=yes --use-syslog' ;; stop) killall -q /usr/sbin/hald