summaryrefslogtreecommitdiff
path: root/units/systemd-logind.service.in
diff options
context:
space:
mode:
authorFranck Bui <fbui@suse.com>2017-03-16 11:17:09 +0100
committerFranck Bui <fbui@suse.com>2017-06-08 16:21:36 +0200
commitaed24c4cd7641da6f530853d10637568c13c8f35 (patch)
treec9cfebab6f5d144f14e5d00ab967dd0b2dcb574f /units/systemd-logind.service.in
parentdc6284e9efb0a6801dd7a951d39ebb7d9a279676 (diff)
downloadsystemd-aed24c4cd7641da6f530853d10637568c13c8f35.tar.gz
logind: save/restore session devices and their respective file descriptors
This patch ensures that session devices are saved for each session. In order to make the revokation logic work when logind is restarted, the session devices are now saved in the session state files and their respective file descriptors sent to PID1's fdstore in order to keep them open accross restart. This is mandatory in order to keep the revokation logic working. Indeed in case of input-devices, the same file descriptors must be shared by logind and a given session controller in order EVIOCREVOKE to work otherwise multiple sessions can have device access in parallel. This should be the only remaining and missing piece for making logind fully restartable. Fixes: #1163
Diffstat (limited to 'units/systemd-logind.service.in')
-rw-r--r--units/systemd-logind.service.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/units/systemd-logind.service.in b/units/systemd-logind.service.in
index e20a3ad057..22d74f51d9 100644
--- a/units/systemd-logind.service.in
+++ b/units/systemd-logind.service.in
@@ -31,6 +31,7 @@ RestrictNamespaces=yes
RestrictAddressFamilies=AF_UNIX AF_NETLINK AF_INET AF_INET6
SystemCallFilter=~@clock @cpu-emulation @debug @keyring @module @obsolete @raw-io @reboot @swap
SystemCallArchitectures=native
+FileDescriptorStoreMax=512
# Increase the default a bit in order to allow many simultaneous
# logins since we keep one fd open per session.