Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 267042 - sys-apps/hal-0.5.11-r8 Gentoo specific rules in /etc/dbus-1/system.d/hal.conf have no effect
Summary: sys-apps/hal-0.5.11-r8 Gentoo specific rules in /etc/dbus-1/system.d/hal.conf...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Daniel Gryniewicz (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-22 00:09 UTC by Jeremy Guitton
Modified: 2009-05-29 17:43 UTC (History)
0 users

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


Attachments
The updated patch (0001-Add-Gentoo-specific-policies.patch,1.11 KB, patch)
2009-04-22 00:10 UTC, Jeremy Guitton
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy Guitton 2009-04-22 00:09:15 UTC
Gentoo specific rules in /etc/dbus-1/system.d/hal.conf have no effect because the rules are set to allow for all before the Gentoo policy! She must be deny !

The patch 0001-Add-Gentoo-specific-policies.patch need to be updated.



Reproducible: Always
Comment 1 Jeremy Guitton 2009-04-22 00:10:21 UTC
Created attachment 189109 [details, diff]
The updated patch
Comment 2 Daniel Gryniewicz (RETIRED) gentoo-dev 2009-05-06 16:31:54 UTC
I don't believe that's right.  The default context is the policykit context, and those rules have no effect unless you have policykit running (in which case, the policykit rules apply).  Most of the policy on HAL functions is that the user logged into console can run them.  There are a few that are restricted to root, and some are restricted when multiple people are logged in.

Those rules need to be there for those of us using policykit instead of Gentoo's plugdev.
Comment 3 Jeremy Guitton 2009-05-15 11:53:48 UTC
Humm... I'm running a gentoo stable x86 without policykit, I'm not in plugdev group and I'm able to mount cdrom, usb keys, etc..

The gnome-session ebuild says "Add yourself to the plugdev group if you want automounting to work.", without this patch, it is not the case if the system was builds without policykit support.
And you can see in hal.conf.in "Default policy for the exported interfaces; if PolicyKit is not used for access control you will need to modify this".

So, I see 2 solutions :

-1) Allow automounting for all users if the system was builds without policykit support.   In this case, remove completly the patch and plugdev group because they're not needed.

-2) Allow aitomounting for members of plugdev group only, and in this case, this patch is needed because the original patch don't works like expected.

++'ll

Jeremy
Comment 4 Daniel Gryniewicz (RETIRED) gentoo-dev 2009-05-15 13:07:58 UTC
Neither of those solutions is acceptable.  I'll work on a proper solution.
Comment 5 Daniel Gryniewicz (RETIRED) gentoo-dev 2009-05-29 17:43:09 UTC
Fixed in hal-0.5.12_rc1-r5