hal/doc/spec hal-spec.html,1.71,1.72
David Zeuthen
david at freedesktop.org
Fri Jan 20 18:45:29 PST 2006
- Previous message: hal AUTHORS, 1.3, 1.4 ChangeLog, 1.752, 1.753 Makefile.am, 1.12,
1.13 configure.in, 1.111, 1.112
- Next message: hal/hald/linux2 blockdev.c, 1.30, 1.31 classdev.c, 1.40,
1.41 osspec.c, 1.39, 1.40
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvs/hal/hal/doc/spec
In directory gabe:/tmp/cvs-serv12741/doc/spec
Modified Files:
hal-spec.html
Log Message:
2006-01-20 David Zeuthen <davidz at redhat.com>
Great patch from Sjoerd Simons <sjoerd at luon.net>: As most people
probably know by now, various people don't really like that hal
running as root. We'd much rather see only a small process running
as root and the main hal process running unpriviledged. Which is
exactly what this patch does :)
How does it work? Just before drops it's root privs. a small
program is startup which will remain running as root and does the
real execution of the addons/probes/callouts on hals
behalf. Communication between hald and hald-runner is done via a
p2p dbus connection. Resulting in a process tree like this:
hal /usr/sbin/hald
root \_ /usr/lib/hal/hald-runner
root \_ /usr/lib/hal/hald-addon-acpi
root \_ /usr/lib/hal/hald-addon-storage
root \_ /usr/lib/hal/hald-addon-storage
The patch consists out of two parts. First the implementation of
hald-runner, which is about 700 lines of code. And then a part
transforming the hald code from the current spawning code in utils
to an interface that can talk to the runner.
* AUTHORS: Add Sjoerd Simons <sjoerd at luon.net>. Revise my own
email address.
* configure.in (AC_OUTPUT): Add hald-runner
* Makefile.am (SUBDIRS): Add hald-runner
* hald/Makefile.am (hald_SOURCES): add hald_runner.[ch]
* hald-runner/utils.c, hald-runner/utils.h, hald-runner/runner.c,
hald-runner/runner.h, hald-runner/main.c, hald-runner/Makefile.am,
hald/linux2/osspec.c, hald/linux2/classdev.c,
hald/linux2/blockdev.c, hald/util.[ch], hald/hald_dbus.c,
hald/hald.c, hald/hald_runner.[ch]: New and changed files with
slight changes. See the descriptive text above and discussion at
http://lists.freedesktop.org/archives/hal/2006-January/004327.html
for details.
Changed function hald_runner_start_runner() in hald/hald_runner.c
to print out runner path and improve error handling when runner
is not found. Also removed dbus_server_unref (server) in
handle_connection() in same file.
* hald/haldaemon.in: Remove --retain-privileges as this is no longer
needed
* hald/run-hald.sh, hald/debug-hald.sh, hald/valgrind-hald.sh:
Remove --retain-privileges and use --with-runner pointing to
../hald-runner/hald-runner
Index: hal-spec.html
===================================================================
RCS file: /cvs/hal/hal/doc/spec/hal-spec.html,v
retrieving revision 1.71
retrieving revision 1.72
diff -u -d -r1.71 -r1.72
--- hal-spec.html 17 Jan 2006 01:08:04 -0000 1.71
+++ hal-spec.html 21 Jan 2006 02:45:26 -0000 1.72
@@ -2,7 +2,7 @@
<HTML
><HEAD
><TITLE
->HAL 0.5.6 Specification</TITLE
+>HAL 0.5.7 Specification</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"></HEAD
@@ -24,7 +24,7 @@
CLASS="title"
><A
NAME="AEN2"
->HAL 0.5.6 Specification</A
+>HAL 0.5.7 Specification</A
></H1
><H3
CLASS="author"
@@ -51,7 +51,7 @@
></DIV
><SPAN
CLASS="releaseinfo"
->Version 0.5.6<BR></SPAN
+>Version 0.5.7<BR></SPAN
><HR></DIV
><DIV
CLASS="TOC"
@@ -778,7 +778,7 @@
></TR
><TR
><TD
->0.5.6</TD
+>0.5.7</TD
><TD
> </TD
><TD
- Previous message: hal AUTHORS, 1.3, 1.4 ChangeLog, 1.752, 1.753 Makefile.am, 1.12,
1.13 configure.in, 1.111, 1.112
- Next message: hal/hald/linux2 blockdev.c, 1.30, 1.31 classdev.c, 1.40,
1.41 osspec.c, 1.39, 1.40
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the hal-commit
mailing list