Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 408713 - sys-fs/udev-9999: udev-acl functionality removed with no obvious alternative
Summary: sys-fs/udev-9999: udev-acl functionality removed with no obvious alternative
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: udev maintainers
URL:
Whiteboard:
Keywords:
: 416763 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-03-18 15:14 UTC by Rafał Mużyło
Modified: 2012-05-24 01:18 UTC (History)
4 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 Rafał Mużyło 2012-03-18 15:14:02 UTC
Following commit (http://git.kernel.org/?p=linux/hotplug/udev.git;a=commit;h=b618e9957b2bd8a4484368620b71ca16fef0c9e6) looks like it has potential to break quite a few things across the board, at very least pulseaudio, on non-systemd systems.

AFAICT, atm. there's no obvious alternative provider of this functionality.

(in regard of CC list: sound - pulseaudio; freedesktop - polkit/consolekit)
Comment 1 William Hubbs gentoo-dev 2012-03-18 16:25:15 UTC
Udev upstream stated in their commit message that this will be taken
over by a future version of consolekit.

There is no official release of udev > 181 yet, so there isn't anything
I can do from a udev perspective. We need to see if consolekit does
pick up this functionality.
Comment 2 Rafał Mużyło 2012-03-18 16:57:36 UTC
@comment 1: well, that's the optimistic case. Given the current track record of the recent udev releases in regard of non-systemd setups and the fact, that not only consolekit upstream declared itself obsolete, but there were no commits into consolekit repo since 25.05.2011, I've got a really bad feeling about this ending up as another case of "we care *only* about systemd" (that is I kind of doubt such consolekit version will actually happen - i.e. pulseaudio recently simply got a systemd module and an early return in consolekit module).


TBH, I wonder if openrc wouldn't be the proper place for a workaround in Gentoo.

I'd like to remind you about bug 360849 comment 28: "we will get there this year, i hope", indeed.
Comment 3 William Hubbs gentoo-dev 2012-03-19 00:18:29 UTC
It looks like consolekit is going to have a new release soon which will
take care of this. Also, udev-182 is now out and will be added to the
tree.
Comment 4 William Hubbs gentoo-dev 2012-03-19 22:08:43 UTC
udev 182 is in the tree, package.masked, until the new consolekit is
released.
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2012-03-20 07:39:04 UTC
Fixed with consolekit-0.4.5-r3
Comment 6 Francesco Riosa 2012-03-20 10:56:15 UTC
is it possible to re-introduce the use flag "acl" and make it depend on consolekit?

>=consolekit-0.4.5-r3[acl]

this would save problems with packages that depend on udev[acl] like net-print/hplip
Comment 7 Samuli Suominen (RETIRED) gentoo-dev 2012-03-20 10:59:13 UTC
(In reply to comment #6)
> is it possible to re-introduce the use flag "acl" and make it depend on
> consolekit?
> 
> >=consolekit-0.4.5-r3[acl]
> 
> this would save problems with packages that depend on udev[acl] like
> net-print/hplip

no, but I fixed hplip ebuilds instead. :)

a user noted this on #gentoo at Freenode few minutes ago
Comment 8 Samuli Suominen (RETIRED) gentoo-dev 2012-05-20 17:50:23 UTC
*** Bug 416763 has been marked as a duplicate of this bug. ***
Comment 9 Bill Prendergast 2012-05-23 17:43:55 UTC
(In reply to comment #8)
> *** Bug 416763 has been marked as a duplicate of this bug. ***

your response to duplicate bug report

>Solution:
>Use current stable consolekit.

what happens if I don't want X and realted deps? what functionality am I missing? (will need to replicate by hand in udev rules)
Comment 10 Samuli Suominen (RETIRED) gentoo-dev 2012-05-23 23:34:53 UTC
USE="acl" in sys-auth/consolekit and older versions of sys-fs/udev is related to MultiSeat support. You propably don't want this feature at all...

Google "ConsoleKit MultiSeat" or similar...

And couple of X libraries getting pulled in as dependency, well, boohoo
Comment 11 Rafał Mużyło 2012-05-24 00:47:58 UTC
@comment 10: not quite right.
It's for setting access rights to various devices via ACL for the active user (as defined by consolekit).
The final rule in the file was:
LABEL="acl_apply", TAG=="udev-acl", TEST=="/var/run/ConsoleKit/database", \
RUN+="udev-acl --action=$env{ACTION} --device=$env{DEVNAME}"

So, if for it to be working, consolekit was *already* required.
Comment 12 Samuli Suominen (RETIRED) gentoo-dev 2012-05-24 01:18:58 UTC
(In reply to comment #11)
> @comment 10: not quite right.

bah. nitpicking.

> It's for setting access rights to various devices via ACL for the active
> user (as defined by consolekit).

right, which is mostly useful for multiseat setups.

(now i'm done with commenting here :)