2017-11-18 19:35:03 +03:00
# SPDX-License-Identifier: LGPL-2.1+
#
2011-06-17 02:15:02 +04:00
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
2012-04-12 02:20:58 +04: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-17 02:15:02 +04:00
# (at your option) any later version.
[Unit]
Description = Login Service
2012-07-19 14:46:55 +04:00
Documentation = man:systemd-logind.service(8) man:logind.conf(5)
2017-06-29 05:54:12 +03:00
Documentation = https://www.freedesktop.org/wiki/Software/systemd/logind
Documentation = https://www.freedesktop.org/wiki/Software/systemd/multiseat
2013-07-02 05:47:23 +04:00
Wants = user.slice
After = nss-user-lookup.target user.slice
2011-06-17 02:15:02 +04:00
2017-07-23 18:45:57 +03:00
# Ask for the dbus socket.
2014-02-15 02:01:43 +04:00
Wants = dbus.socket
After = dbus.socket
2011-06-17 02:15:02 +04:00
[Service]
BusName = org.freedesktop.login1
2018-11-14 19:03:33 +03: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
2018-11-12 19:19:48 +03:00
ExecStart = @rootlibexecdir@/systemd-logind
FileDescriptorStoreMax = 512
IPAddressDeny = any
LockPersonality = yes
2016-06-08 15:23:37 +03:00
MemoryDenyWriteExecute = yes
2018-11-12 19:19:48 +03:00
NoNewPrivileges = yes
Restart = always
RestartSec = 0
2018-04-27 12:11:29 +03:00
RestrictAddressFamilies = AF_UNIX AF_NETLINK
2018-11-12 19:19:48 +03:00
RestrictNamespaces = yes
RestrictRealtime = yes
2017-02-09 00:32:37 +03:00
SystemCallArchitectures = native
2018-11-12 19:19:48 +03:00
SystemCallErrorNumber = EPERM
SystemCallFilter = @system-service
WatchdogSec = 3min
2011-10-11 06:43:29 +04:00
2018-10-01 19:08:27 +03:00
# Increase the default a bit in order to allow many simultaneous logins since
# we keep one fd open per session.
2018-10-17 11:21:48 +03:00
LimitNOFILE = @HIGH_RLIMIT_NOFILE@