chiark / gitweb /
do not overwrite other udev tags
authorAndrey Borzenkov <arvidjaar@gmail.com>
Tue, 2 Nov 2010 16:45:43 +0000 (19:45 +0300)
committerKay Sievers <kay.sievers@vrfy.org>
Tue, 2 Nov 2010 17:30:26 +0000 (18:30 +0100)
commit1e85f63615d0b592686fba810157d6b5963b2af9
treea482f3768ba1a423fe7a8c22912505b3ec7084ad
parentc8bc83f5eac49f083ae53d965577118c1b5c1116
do not overwrite other udev tags

Systemd was unconditionally replacing all tags with own.
The net effect was udev-acl tag was lost and devices were
not given proper ACLs, making them inaccessible.

Before:

{pts/0}% udevadm info --query property --name sr0
DEVNAME=/dev/sr0
[...]
TAGS=:systemd:
{pts/0}% getfacl /dev/sr0
getfacl: Removing leading '/' from absolute path names
# file: dev/sr0
# owner: root
# group: cdrom
user::rw-
group::rw-
other::---

After:

{pts/0}% udevadm info --query property --name sr0
DEVNAME=/dev/sr0
[...]
TAGS=:udev-acl:systemd:
{pts/0}% getfacl /dev/sr0
getfacl: Removing leading '/' from absolute path names
# file: dev/sr0
# owner: root
# group: cdrom
user::rw-
user:bor:rw-
group::rw-
mask::rw-
other::---

Signed-off-by: Andrey Borzenkov <arvidjaar@gmail.com>
src/99-systemd.rules