Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 431152 - sys-apps/systemd-188 does not have working logind udev integration
Summary: sys-apps/systemd-188 does not have working logind udev integration
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: udev maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-12 23:12 UTC by Marien Zwart (RETIRED)
Modified: 2012-08-15 12:36 UTC (History)
6 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 Marien Zwart (RETIRED) gentoo-dev 2012-08-12 23:12:56 UTC
systemd-188 is missing working integration between logind (its consolekit replacement) and udev, which means permissions on a bunch of device nodes (like /dev/snd/* and /dev/dri/*) aren't set up correctly (my logged in local user cannot access them). This is probably partially a udev and partially a systemd problem. From a quick look at the source the problems include (but are not necessarily limited to):

- Neither udev nor systemd installs the logind-related udev rules (70-uaccess.rules, 70-power-switch.rules, 71-seat.rules, 73-seat-late.rules). systemd installs no udev rules at all, udev skips these as it is built with --disable-logind. systemd probably needs to install these, as they call out to loginctl.

- It looks like the udev rules require some functionality (a "uaccess" builtin) from udev that's provided by --enable-acl, which is currently forcibly disabled by the udev ebuild (with an einfo pointing you at consolekit). udev probably needs to grow an acl USE flag again.

Filing this against systemd as I'm not 100% sure udev needs that acl USE flag.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2012-08-13 08:03:08 UTC
Rules I can provide, builtin I can't. Unless we're going back to the virtual route.
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2012-08-13 08:52:15 UTC
"udev-acl" was removed from udev >= 182 and was moved to ConsoleKit

but I don't know what --enable-acl does in systemd/udev >= 187 or why the ebuild has --disable-acl
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2012-08-13 08:54:19 UTC
(In reply to comment #2)
> "udev-acl" was removed from udev >= 182 and was moved to ConsoleKit
> 
> but I don't know what --enable-acl does in systemd/udev >= 187 or why the
> ebuild has --disable-acl

I think we can add USE="acl" and $(use_enable acl) for udev's ebuild, then systemd should have sys-fs/udev[acl?] and do the same?
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2012-08-13 08:55:11 UTC
(In reply to comment #2)
> "udev-acl" was removed from udev >= 182 and was moved to ConsoleKit
> 
> but I don't know what --enable-acl does in systemd/udev >= 187 or why the
> ebuild has --disable-acl

if HAVE_ACL
libudev_core_la_SOURCES += \
    src/udev/udev-builtin-uaccess.c \
    src/login/logind-acl.c \
    src/login/sd-login.c

libudev_core_la_LIBADD += \
    libsystemd-acl.la
endif
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2012-08-13 08:56:52 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > "udev-acl" was removed from udev >= 182 and was moved to ConsoleKit
> > 
> > but I don't know what --enable-acl does in systemd/udev >= 187 or why the
> > ebuild has --disable-acl
> 
> I think we can add USE="acl" and $(use_enable acl) for udev's ebuild, then
> systemd should have sys-fs/udev[acl?] and do the same?

Sounds acceptable.

By the way, do you expect to do anything with files which should be installed by udev but have to be installed by systemd now? Like udev .service files and a few missing rules?
Comment 6 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2012-08-15 12:36:31 UTC
Fixed in systemd-188-r1.