Skip to content
  • Andrey Borzenkov's avatar
    do not overwrite other udev tags · 1e85f636
    Andrey Borzenkov authored
    
    
    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: default avatarAndrey Borzenkov <arvidjaar@gmail.com>
    1e85f636