Summary: | sys-apps/opentmpfiles with sys-auth/nss_ldap - /lib64/rc/sh/tmpfiles.sh sets invalid gid/uid on /dev nodes | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | José María Fernández González <josemariafg> |
Component: | Current packages | Assignee: | William Hubbs <williamh> |
Status: | UNCONFIRMED --- | ||
Severity: | normal | CC: | floppym, ldap-bugs, nico, openrc, prometheanfire, razamatan, robbat2, sam |
Priority: | Normal | Keywords: | PATCH |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | tmpfiles.sh patch |
Description
José María Fernández González
2014-01-07 22:28:58 UTC
This is a bug for kmod, not OpenRC. not a bug in ldap, removing mine self not ldap bug, removing ldap-bugs... Why is it trying to do a passwd lookup when we pass a UID value of 0? That seems kind of broken. (In reply to William Hubbs from comment #1) > This is a bug for kmod, not OpenRC. That doesn't seem right where as systemd is capable of handling the kmod generated .conf properly, why OpenRC can't? Created attachment 383978 [details, diff]
tmpfiles.sh patch
sys-apps/openrc-0.12.4 patch
the patch i just posted fixes things for me.. doesn't have to rely on upstream kmod changes. ideally, the script should drop the -o and -g flags when the user and group params are unset (or set to -) to let the commands use the running user and their group. but, i got lazy and just hard coded root. @floppym: Does systemd's tmpfiles program ignore the uid and gid if "-" is passedin those positions? The patch for tmpfiles.sh is working and correct, for my opinion. +1 tmpfiles.sh was moved to opentmpfiles a while ago. I wonder if this is still an issue for opentmpfiles? (In reply to William Hubbs from comment #8) > @floppym: > Does systemd's tmpfiles program ignore the uid and gid if "-" is passedin > those positions? When systemd-tmpfiles sees a dash, it skips calling chown() and leaves the uid/gid as-is. No NSS lookups are performed. |