]>
Commit | Line | Data |
---|---|---|
91f9dcaf LP |
1 | # This file is part of systemd. |
2 | # | |
3 | # systemd is free software; you can redistribute it and/or modify it | |
5430f7f2 LP |
4 | # under the terms of the GNU Lesser General Public License as published by |
5 | # the Free Software Foundation; either version 2.1 of the License, or | |
91f9dcaf LP |
6 | # (at your option) any later version. |
7 | ||
91f9dcaf LP |
8 | [Unit] |
9 | Description=Login Service | |
3f612b91 | 10 | Documentation=man:systemd-logind.service(8) man:logind.conf(5) |
085b90af | 11 | Documentation=http://www.freedesktop.org/wiki/Software/systemd/logind |
49dbfa7b | 12 | Documentation=http://www.freedesktop.org/wiki/Software/systemd/multiseat |
1ee306e1 LP |
13 | Wants=user.slice |
14 | After=nss-user-lookup.target user.slice | |
91f9dcaf | 15 | |
8f9c6fe5 ZJS |
16 | # Ask for the dbus socket. If running over kdbus, the socket will |
17 | # not be actually used. | |
18 | Wants=dbus.socket | |
19 | After=dbus.socket | |
20 | ||
91f9dcaf LP |
21 | [Service] |
22 | ExecStart=@rootlibexecdir@/systemd-logind | |
454591be | 23 | Restart=always |
47ec1184 | 24 | RestartSec=0 |
91f9dcaf | 25 | BusName=org.freedesktop.login1 |
c2fc2c25 | 26 | WatchdogSec=3min |
0c28d51a | 27 | 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 |
40652ca4 | 28 | MemoryDenyWriteExecute=yes |
0c28d51a | 29 | RestrictRealtime=yes |
3c19d0b4 | 30 | RestrictNamespaces=yes |
0c28d51a | 31 | RestrictAddressFamilies=AF_UNIX AF_NETLINK AF_INET AF_INET6 |
6489ccfe | 32 | SystemCallFilter=~@clock @cpu-emulation @debug @keyring @module @obsolete @raw-io @reboot @swap |
7f396e5f | 33 | SystemCallArchitectures=native |
f84aea43 LP |
34 | |
35 | # Increase the default a bit in order to allow many simultaneous | |
36 | # logins since we keep one fd open per session. | |
37 | LimitNOFILE=16384 |