From 316e8d849fc1d34b61d27f2967e0ede84fe9f46d Mon Sep 17 00:00:00 2001 From: Arthur Taylor Date: Thu, 8 Feb 2018 15:03:50 -0800 Subject: 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. --- src/basic/login-util.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/basic/login-util.h') diff --git a/src/basic/login-util.h b/src/basic/login-util.h index a71ebd4ef..b01ee25c8 100644 --- a/src/basic/login-util.h +++ b/src/basic/login-util.h @@ -24,8 +24,6 @@ bool session_id_valid(const char *id); -#if 0 /// UNNEEDED by elogind static inline bool logind_running(void) { return access("/run/systemd/seats/", F_OK) >= 0; } -#endif // 0 -- cgit v1.2.3