Age | Commit message (Collapse) | Author | Files | Lines |
|
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.
Add Sjoerd Simons <sjoerd@luon.net>. Revise my own email address.
Add hald-runner
Add hald-runner
add 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.
Remove --retain-privileges as this is no longer needed
Remove --retain-privileges and use --with-runner pointing to
../hald-runner/hald-runner
|
|
alphabetical order of surname (I'm just soo political correct :-)
Merge onto usb_device since we really don't know what interface to target
Change comment about seqnum
Patch from Steve Grubb <linux4_ever@yahoo.com> to fix leak on error
condition.
Move from TDL to GDL (osspec_probe): Add to TDL; callouts may need it (seen
by Kristof Vansant <de_lupus@pandora.be> (hald_helper_device_node):
Print out seqnum (hald_helper_data): Pass seqnum
Ignore ENABLE_VERBOSE_MODE; always compile all logging statements in
(should take the heat of some bugreports)
Pass seqnum if available; otherwise pass -1.
|
|
Add code for checking whether the eject button is pressed on an optical
drive. If detected the condition 'EjectPressed' is emitted on the disc
HalDevice with a single string representing the device file. Also
remove BAR and FOO debug statements from earlier development sessions.
Yay.
|
|
|