Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 107211 - hal-0.5.2 - hald runs as user "haldaemon" and is therefore not able to load some extensions
Summary: hal-0.5.2 - hald runs as user "haldaemon" and is therefore not able to load s...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Project Gentopia
URL:
Whiteboard:
Keywords:
: 109425 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-09-25 14:31 UTC by Fabian Zeindl
Modified: 2005-12-29 22:31 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fabian Zeindl 2005-09-25 14:31:31 UTC
Hi

I've hal, version 0.5.2 (masked by package.mask) and it runs nice with one
exception: It runs with the user "haldaemon" and cannot load modules like
hal-addon-acpi therefore. When I start hald with "--retain-privileges" to run as
root it works perfectly. This prevents me from using hal with the whole acpi stuff.

greetings
fabian

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Doug Goldstein (RETIRED) gentoo-dev 2005-10-15 10:31:17 UTC
0.5.2 is very much outdated, not in any tree. Not Gentopia nor Portage. 0.5.4
lives in Portage for a while now. Use that and re-open and provide some details
on what you're trying to use that's failing because there are workarounds to
make HAL be able to read ACPI data without retain-privledges.

The whole point was that we can drop root privledges in HAL.
Comment 2 Carsten Lohrke (RETIRED) gentoo-dev 2005-10-16 08:46:32 UTC
*** Bug 109425 has been marked as a duplicate of this bug. ***
Comment 3 Fabian Zeindl 2005-10-16 13:40:24 UTC
Hi, I just put the wrong version
number in the other bug, I was always using 0.5.4 never 0.5.2.

With hal-addon-acpi hal detects plugging in and out AC adapters instantly,
without this addon it polls about every 30 seconds -> annoying.
Without retain-privileges hal-addon-acpi simply doesn't get loaded.
Comment 4 Andrej Filipcic 2005-11-16 00:59:08 UTC
There is another problem when using pam_console. A lot of devices are set with
user only permissions in /etc/security/console.perms, like cdrom,
<console>  0600 <cdrom>      0660 root.cdrom
Although hal is in cdrom group, when running as a haldaemon, cdroms would
not be detected. Possible solutions:
1) correct console.perms
2) use --retain-privileges
3) abandon pam_console (complicated for a large network...)
Comment 5 Doug Goldstein (RETIRED) gentoo-dev 2005-12-21 01:35:20 UTC
wrt pam_console, configuration is left up to the user. That's why it's an optional feature.

retry all this with 0.5.5.1

retain-privledges will not appear in Gentoo. hal is going to remain running as an unprivledged user. 
Comment 6 Doug Goldstein (RETIRED) gentoo-dev 2005-12-27 11:22:57 UTC
*** Bug 116017 has been marked as a duplicate of this bug. ***
Comment 7 Fabian Zeindl 2005-12-29 05:56:14 UTC
I've the same problem with 0.5.5.1-r2. I use -pam_console, everything works fine when I use --retain-privileges, when I don't use that I get the message "access to /proc/acpi/event denied".
Comment 8 Doug Goldstein (RETIRED) gentoo-dev 2005-12-29 22:31:55 UTC
any possible problems with this are fixed in -r3.