]> git.ipfire.org Git - thirdparty/systemd.git/blob - units/systemd-homed.service.in
home: add new systemd-homed service that can manage LUKS homes
[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 Manager
12 Documentation=man:systemd-homed.service(8)
13 RequiresMountsFor=/home
14
15 [Service]
16 BusName=org.freedesktop.home1
17 CapabilityBoundingSet=CAP_SYS_ADMIN CAP_CHOWN CAP_DAC_OVERRIDE CAP_FOWNER CAP_FSETID CAP_SETGID CAP_SETUID
18 DeviceAllow=/dev/loop-control rw
19 DeviceAllow=/dev/mapper/control rw
20 DeviceAllow=block-* rw
21 ExecStart=@rootlibexecdir@/systemd-homed
22 IPAddressDeny=any
23 KillMode=mixed
24 LimitNOFILE=@HIGH_RLIMIT_NOFILE@
25 LockPersonality=yes
26 MemoryDenyWriteExecute=yes
27 NoNewPrivileges=yes
28 PrivateNetwork=yes
29 RestrictAddressFamilies=AF_UNIX AF_NETLINK AF_ALG
30 RestrictNamespaces=mnt
31 RestrictRealtime=yes
32 StateDirectory=systemd/home
33 SystemCallArchitectures=native
34 SystemCallErrorNumber=EPERM
35 SystemCallFilter=@system-service @mount
36 @SERVICE_WATCHDOG@