1 |
On 07/03/14 21:39, Ian Stakenvicius wrote: |
2 |
> On 07/03/14 02:17 PM, Samuli Suominen wrote: |
3 |
> > - sys-fs/udev leaves it to root:root as: |
4 |
> |
5 |
> > KERNEL=="rfkill", MODE="0664" |
6 |
> |
7 |
> > - third party packages like mate-bluetooth, gnome-bluetooth install |
8 |
> > both their own udev .rules to adjust /dev/rfkill to plugdev: |
9 |
> |
10 |
> > KERNEL=="rfkill", GROUP="plugdev", MODE="0664" |
11 |
> |
12 |
> > So I'd like to propose some unification: |
13 |
> |
14 |
> > I don't have a system with /dev/rfkill unfortunately to test this, |
15 |
> > but I believe we should add this to 40-gentoo.rules and create |
16 |
> > group 'rfkill': |
17 |
> |
18 |
> > SUBSYSTEM=="rfkill", GROUP="rfkill", MODE="0664" |
19 |
> |
20 |
> > And this line would go as /lib/udev/rules.d/70-gentoo-acl.rules (as |
21 |
> > the original filename in upstream ConsoleKit is |
22 |
> > 70-udev-acl.rules): |
23 |
> |
24 |
> > SUBSYSTEM=="rfkill", TAG+="udev-acl" |
25 |
> |
26 |
> |
27 |
> |
28 |
> |
29 |
> As the other per-package rules already setting GROUP= are providing |
30 |
> an understandable legacy behaviour (iirc membership in plugdev is |
31 |
> still the de-facto way to provide access rights when no consolekit or |
32 |
> similar control method is installed), I wonder if we can skip the |
33 |
> group assignment. |
34 |
> |
35 |
> - From what I know about ACL's, the 70-gentoo-acl.rules would still work |
36 |
> fine even if the group remains ":root". |
37 |
> |
38 |
> Thoughts? |
39 |
> |
40 |
|
41 |
I'm okay with leaving it as 'root' for now, since I haven't yet |
42 |
implemented my splitted "plugdev" |
43 |
idea: |
44 |
|
45 |
I've been waiting for the day PolicyKit upstream does something stupid |
46 |
like makes it work only with |
47 |
systemd-logind, so that ConsoleKit is no-op other than udev-acl still |
48 |
working |
49 |
If and when that happens, I doubt many would want ConsoleKit installed |
50 |
at all |
51 |
I've thought about this a lot, and the best contigency plan I've come up |
52 |
with is to ship vendor based |
53 |
PolicyKit .rules files for _split_ plugdev behavior, groups like |
54 |
ArchLinux has: |
55 |
|
56 |
'power' for upower and related |
57 |
'network' for networkmanager and related, and this is likely where |
58 |
'rfkill' would belong then too |
59 |
'storage' for udisks and related |