]> git.ipfire.org Git - thirdparty/systemd.git/blob - units/systemd-homed.service.in
homed: explicitly deactivate all home directories on shutdown
[thirdparty/systemd.git] / units / systemd-homed.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=Home Area Manager
12 Documentation=man:systemd-homed.service(8)
13 Documentation=man:org.freedesktop.home1(5)
14
15 After=home.mount
16
17 [Service]
18 BusName=org.freedesktop.home1
19 CapabilityBoundingSet=CAP_SYS_ADMIN CAP_CHOWN CAP_DAC_OVERRIDE CAP_FOWNER CAP_FSETID CAP_SETGID CAP_SETUID CAP_SYS_RESOURCE
20 DeviceAllow=/dev/loop-control rw
21 DeviceAllow=/dev/mapper/control rw
22 DeviceAllow=block-* rw
23 ExecStart=@rootlibexecdir@/systemd-homed
24 IPAddressDeny=any
25 KillMode=mixed
26 LimitNOFILE=@HIGH_RLIMIT_NOFILE@
27 LockPersonality=yes
28 MemoryDenyWriteExecute=yes
29 NoNewPrivileges=yes
30 RestrictAddressFamilies=AF_UNIX AF_NETLINK AF_ALG
31 RestrictNamespaces=mnt
32 RestrictRealtime=yes
33 StateDirectory=systemd/home
34 SystemCallArchitectures=native
35 SystemCallErrorNumber=EPERM
36 SystemCallFilter=@system-service @mount
37 @SERVICE_WATCHDOG@
38
39 [Install]
40 WantedBy=multi-user.target
41 Alias=dbus-org.freedesktop.home1.service
42 Also=systemd-homed-activate.service systemd-userdbd.service