chiark / gitweb /
logind: apply ACL's to "dead" device nodes
authorTom Gundersen <teg@jklm.no>
Sun, 7 Jul 2013 19:29:12 +0000 (21:29 +0200)
committerTom Gundersen <teg@jklm.no>
Tue, 16 Jul 2013 18:07:57 +0000 (20:07 +0200)
commit6b78df0a6ec75f25705a0f78ef895b95ab75a7ea
treeaef28855c6d22b161b5e9fbc32c8c10f88e2b7a6
parent84b6ad702e64db534f67ce32d4dd2fec00a16784
logind: apply ACL's to "dead" device nodes

Based on a patch by Kay Sievers.

When a dead device nodes is tagged with "uaccess" using the static_node mechanism,
it's ACL's are managed by logind in the same way as "live" device nodes.

This allows in particular /dev/snd/{seq,timer} to cause modules to be loaded
on-demand when accessed by a non-privileged user.
src/login/logind-acl.c