summaryrefslogtreecommitdiff
path: root/hal
diff options
context:
space:
mode:
authorBrett Goulder <predatorfreak@dcaf-security.org>2008-05-18 02:53:14 -0400
committerBrett Goulder <predatorfreak@dcaf-security.org>2008-05-18 02:53:14 -0400
commita27500f768445ce166be327c9e132a2c7eddbb0d (patch)
tree8e066a534321a6e288f0c57268146ac59fab9318 /hal
parent1426208647e7228a4d125049528a010b63b67f8b (diff)
downloadopt-a27500f768445ce166be327c9e132a2c7eddbb0d.tar.gz
opt-a27500f768445ce166be327c9e132a2c7eddbb0d.tar.xz
hal: Run as haldaemon, not root.
Diffstat (limited to 'hal')
-rw-r--r--hal/.md5sum2
-rw-r--r--hal/Pkgfile2
-rw-r--r--hal/rc.hald3
3 files changed, 4 insertions, 3 deletions
diff --git a/hal/.md5sum b/hal/.md5sum
index e1ad99587..adc212864 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 62e562acf..9bfb6899c 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 43629ddd1..022e0fd81 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

Generated by cgit