summaryrefslogtreecommitdiff
path: root/src/basic/login-util.h
diff options
context:
space:
mode:
authorArthur Taylor <art@ified.ca>2018-02-08 15:03:50 -0800
committerSven Eden <yamakuzure@gmx.net>2018-03-07 16:49:51 +0100
commit316e8d849fc1d34b61d27f2967e0ede84fe9f46d (patch)
tree29fe77b20e1d5ab44fbaf5771fee9b38110c2d6e /src/basic/login-util.h
parent6cb78f13ff944c725eb5b0b95fae34308e629057 (diff)
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.
Diffstat (limited to 'src/basic/login-util.h')
-rw-r--r--src/basic/login-util.h2
1 files changed, 0 insertions, 2 deletions
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