Adding rules to udev: easy or a consenus best practice

In principle, I agree. However in the specific case of udev rules needing uaccess, my code snippet above has a link to

where I learned that “TAG uaccess” specifically needs to be set before e.g. /nix/store/a8avqfxd649rfgfpqldja6v38ljb8fj5-systemd-260.1/lib/udev/rules.d/73-seat-late.rules, since that is what converts the TAG into actual FACLs with “RUN builtin uaccess”. In other words, “TAG uaccess” needs to be set in a file lexically before 73-seat-late.rules, so 99-local.rules doesn’t cut it for this use case.

EDIT: see also Udev regression / recommended way for udev rules? for more discussion on uaccess.

1 Like