]> git.ipfire.org Git - thirdparty/systemd.git/blob - units/systemd-logind.service.in
Merge pull request #6918 from ssahani/issue-5625
[thirdparty/systemd.git] / units / systemd-logind.service.in
1 # SPDX-License-Identifier: LGPL-2.1+
2 #
3 # This file is part of systemd.
4 #
5 # systemd is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU Lesser General Public License as published by
7 # the Free Software Foundation; either version 2.1 of the License, or
8 # (at your option) any later version.
9
10 [Unit]
11 Description=Login Service
12 Documentation=man:systemd-logind.service(8) man:logind.conf(5)
13 Documentation=https://www.freedesktop.org/wiki/Software/systemd/logind
14 Documentation=https://www.freedesktop.org/wiki/Software/systemd/multiseat
15 Wants=user.slice
16 After=nss-user-lookup.target user.slice
17
18 # Ask for the dbus socket.
19 Wants=dbus.socket
20 After=dbus.socket
21
22 [Service]
23 ExecStart=@rootlibexecdir@/systemd-logind
24 Restart=always
25 RestartSec=0
26 BusName=org.freedesktop.login1
27 WatchdogSec=3min
28 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
29 MemoryDenyWriteExecute=yes
30 RestrictRealtime=yes
31 RestrictNamespaces=yes
32 RestrictAddressFamilies=AF_UNIX AF_NETLINK AF_INET AF_INET6
33 SystemCallFilter=~@clock @cpu-emulation @debug @keyring @module @obsolete @raw-io @reboot @swap
34 SystemCallArchitectures=native
35 LockPersonality=yes
36 IPAddressDeny=any
37 FileDescriptorStoreMax=512
38
39 # Increase the default a bit in order to allow many simultaneous
40 # logins since we keep one fd open per session.
41 LimitNOFILE=16384