chiark / gitweb /
Introduce elogind-uaccess-command to replace uaccess builtin.
authorArthur Taylor <art@ified.ca>
Thu, 8 Feb 2018 23:03:50 +0000 (15:03 -0800)
committerSven Eden <yamakuzure@gmx.net>
Wed, 7 Mar 2018 15:49:51 +0000 (16:49 +0100)
commit316e8d849fc1d34b61d27f2967e0ede84fe9f46d
tree29fe77b20e1d5ab44fbaf5771fee9b38110c2d6e
parent6cb78f13ff944c725eb5b0b95fae34308e629057
Introduce elogind-uaccess-command to replace uaccess builtin.

The uaccess udev builtin command is only used by logind and contains
functionality only implemented in logind. As such, while we cannot
write udev-builtin commands in elogind (not being udev), we can write
standalone binaries and rewrite our udev rules to use them instead.

This fixes the feature of granting users access to devices using a user
ACL which is toggled only when the user is associated with an active
session. Currently this functionality is half broken, as while the ACL
is granted and revoked while VT-switching, it is not granted to new
devices as they are plugged in. This issue is fixed by this commit.
meson.build
src/basic/login-util.h
src/login/73-seat-late.rules.in
src/uaccess-command/uaccess-command.c [new file with mode: 0644]