summaryrefslogtreecommitdiff
path: root/hald/run-hald.sh
diff options
context:
space:
mode:
authorDavid Zeuthen <david@fubar.dk>2005-02-08 21:37:47 +0000
committerDavid Zeuthen <david@fubar.dk>2005-02-08 21:37:47 +0000
commit13214bbb437959fee862acd320e2d7d202b1ef14 (patch)
treee72ebd350032a267f3c7115618dc6697ec50bb2f /hald/run-hald.sh
parent45d75fb110cee9c47c3a61bfad8a2c22b95da238 (diff)
Patch from Sjoerd Simons <sjoerd@luon.net>.
Since i seem to be in an extreme mood anyway, attached it is a patch that will make hal always drop permissions to non-root. Also it removes keeping the net admin capability as it's not being used anymore. I think it's the right way to do things. There should be no reason to run hald as root ever and forcing it from the start of the development cycle is a good way of ensuring that :) It would also be nice to have the addons that need to start out as root (like the ups one) drop permission as soon as possible (one can never be too sure)... Probably a utility function would be nice for that, but i don't know where to place it (as the addons and probers live in different dirs) Slightly mangled by myself to remove libcap dep and introduce the --retain-privileges option. Don't require libcap Don't link with libcap Use new --retain-privileges option since this is the development runscript Remove option --drop-privileges and introduce new option --retain-privileges (drop_privileges): Just drop to uid/gid of specified haldaemon user and group. Don't use libcap anymore. (main): Enforce new --retain-privileges option since it's useful for development
Diffstat (limited to 'hald/run-hald.sh')
-rwxr-xr-xhald/run-hald.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/hald/run-hald.sh b/hald/run-hald.sh
index 86515c3a..4075e320 100755
--- a/hald/run-hald.sh
+++ b/hald/run-hald.sh
@@ -1,4 +1,5 @@
#!/bin/sh
export PATH=linux2:linux2/probing:linux2/addons:.:$PATH
-./hald --daemon=no --verbose=yes
+./hald --daemon=no --verbose=yes --retain-privileges
+