FS#36259 - [systemd] 206 sets incorrect permissions on static nodes
Attached to Project:
Arch Linux
Opened by Gaetan Bisson (vesath) - Wednesday, 24 July 2013, 02:50 GMT
Last edited by Dave Reisner (falconindy) - Tuesday, 13 August 2013, 16:45 GMT
Opened by Gaetan Bisson (vesath) - Wednesday, 24 July 2013, 02:50 GMT
Last edited by Dave Reisner (falconindy) - Tuesday, 13 August 2013, 16:45 GMT
|
Details
With linux-3.10.2-1 from [testing] the fuse module is not
automatically loaded when a client application tries to use
it - as used to be the case with linux-3.9.9-1 and before.
|
This task depends upon
Closed by Dave Reisner (falconindy)
Tuesday, 13 August 2013, 16:45 GMT
Reason for closing: Fixed
Additional comments about closing: systemd-206-2
Tuesday, 13 August 2013, 16:45 GMT
Reason for closing: Fixed
Additional comments about closing: systemd-206-2
So this seems to be an udev bug (almost certainly introduced by me). Sadly I don't have time to look into it today.
The relevant code is http://cgit.freedesktop.org/systemd/systemd/tree/src/udev/udev-rules.c#n2500
I'll have a better look tomorrow if this is not resolved by then.
I can reproduce the problem too now, but if I restart udevd it fixes itself, so it looks like a race-condition.
I first thought it may be that the device nodes are somehow not created before udev is started, but that doesn't make sense as both the GROUP= and the ACL stuff is applied correctly, it is just the permissions that are wrong...
systemd-tmpfiles --prefix=/dev --create <- createse dead nodes
systemd-udevd <- changes permissions
systemd-tmpfiles --create <- resets permissions
I'll post a fix to the systemd ML shortly, which will change the tmpfiles api slightly to allow:
systemd-tmpfiles --prefix=/dev --create <- createse dead nodes
systemd-udevd <- changes permissions
systemd-tmpfiles --prefix=!/dev --create <- don't touch /dev at all
But this is made possible through 2 prior commits:
http://cgit.freedesktop.org/systemd/systemd/commit/?id=a2aced4add
http://cgit.freedesktop.org/systemd/systemd/commit/?id=5c7951141f