2011-06-16 22:15:02 +00:00
|
|
|
# This file is part of systemd.
|
|
|
|
#
|
|
|
|
# systemd is free software; you can redistribute it and/or modify it
|
2012-04-11 22:20:58 +00:00
|
|
|
# under the terms of the GNU Lesser General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 2.1 of the License, or
|
2011-06-16 22:15:02 +00:00
|
|
|
# (at your option) any later version.
|
|
|
|
|
|
|
|
[Unit]
|
|
|
|
Description=Login Service
|
2012-07-19 10:46:55 +00:00
|
|
|
Documentation=man:systemd-logind.service(8) man:logind.conf(5)
|
2013-07-19 01:49:07 +00:00
|
|
|
Documentation=http://www.freedesktop.org/wiki/Software/systemd/logind
|
2012-05-21 13:12:18 +00:00
|
|
|
Documentation=http://www.freedesktop.org/wiki/Software/systemd/multiseat
|
2013-07-02 01:47:23 +00:00
|
|
|
Wants=user.slice
|
|
|
|
After=nss-user-lookup.target user.slice
|
2011-06-16 22:15:02 +00:00
|
|
|
|
2014-02-14 22:01:43 +00:00
|
|
|
# Ask for the dbus socket. If running over kdbus, the socket will
|
|
|
|
# not be actually used.
|
|
|
|
Wants=dbus.socket
|
|
|
|
After=dbus.socket
|
|
|
|
|
2011-06-16 22:15:02 +00:00
|
|
|
[Service]
|
|
|
|
ExecStart=@rootlibexecdir@/systemd-logind
|
2012-06-28 10:13:52 +00:00
|
|
|
Restart=always
|
2012-07-18 00:31:52 +00:00
|
|
|
RestartSec=0
|
2011-06-16 22:15:02 +00:00
|
|
|
BusName=org.freedesktop.login1
|
2015-09-23 15:27:39 +00:00
|
|
|
WatchdogSec=3min
|
2016-08-26 11:23:27 +00:00
|
|
|
CapabilityBoundingSet=CAP_SYS_ADMIN CAP_MAC_ADMIN CAP_AUDIT_CONTROL CAP_CHOWN CAP_KILL CAP_DAC_READ_SEARCH CAP_DAC_OVERRIDE CAP_FOWNER CAP_SYS_TTY_CONFIG
|
2016-06-08 12:23:37 +00:00
|
|
|
MemoryDenyWriteExecute=yes
|
2016-08-26 11:23:27 +00:00
|
|
|
RestrictRealtime=yes
|
2017-02-09 09:28:23 +00:00
|
|
|
RestrictNamespaces=yes
|
2016-08-26 11:23:27 +00:00
|
|
|
RestrictAddressFamilies=AF_UNIX AF_NETLINK AF_INET AF_INET6
|
2017-02-09 10:22:08 +00:00
|
|
|
SystemCallFilter=~@clock @cpu-emulation @debug @keyring @module @obsolete @raw-io @reboot @swap
|
2017-02-08 21:32:37 +00:00
|
|
|
SystemCallArchitectures=native
|
2017-03-16 10:17:09 +00:00
|
|
|
FileDescriptorStoreMax=512
|
2011-10-11 02:43:29 +00:00
|
|
|
|
|
|
|
# Increase the default a bit in order to allow many simultaneous
|
|
|
|
# logins since we keep one fd open per session.
|
|
|
|
LimitNOFILE=16384
|