2019-07-04 16:35:39 +00:00
|
|
|
# SPDX-License-Identifier: LGPL-2.1+
|
|
|
|
#
|
|
|
|
# This file is part of systemd.
|
|
|
|
#
|
|
|
|
# systemd is free software; you can redistribute it and/or modify it
|
|
|
|
# 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
|
|
|
|
# (at your option) any later version.
|
|
|
|
|
|
|
|
[Unit]
|
2020-03-11 12:07:10 +00:00
|
|
|
Description=Home Area Manager
|
2019-07-04 16:35:39 +00:00
|
|
|
Documentation=man:systemd-homed.service(8)
|
2020-09-29 06:03:10 +00:00
|
|
|
Documentation=man:org.freedesktop.home1(5)
|
|
|
|
|
2020-03-31 09:35:08 +00:00
|
|
|
After=home.mount
|
2019-07-04 16:35:39 +00:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
BusName=org.freedesktop.home1
|
2020-09-18 20:01:49 +00:00
|
|
|
CapabilityBoundingSet=CAP_SYS_ADMIN CAP_CHOWN CAP_DAC_OVERRIDE CAP_FOWNER CAP_FSETID CAP_SETGID CAP_SETUID CAP_SYS_RESOURCE
|
2019-07-04 16:35:39 +00:00
|
|
|
DeviceAllow=/dev/loop-control rw
|
|
|
|
DeviceAllow=/dev/mapper/control rw
|
|
|
|
DeviceAllow=block-* rw
|
|
|
|
ExecStart=@rootlibexecdir@/systemd-homed
|
|
|
|
IPAddressDeny=any
|
|
|
|
KillMode=mixed
|
|
|
|
LimitNOFILE=@HIGH_RLIMIT_NOFILE@
|
|
|
|
LockPersonality=yes
|
|
|
|
MemoryDenyWriteExecute=yes
|
|
|
|
NoNewPrivileges=yes
|
|
|
|
RestrictAddressFamilies=AF_UNIX AF_NETLINK AF_ALG
|
|
|
|
RestrictNamespaces=mnt
|
|
|
|
RestrictRealtime=yes
|
|
|
|
StateDirectory=systemd/home
|
|
|
|
SystemCallArchitectures=native
|
|
|
|
SystemCallErrorNumber=EPERM
|
|
|
|
SystemCallFilter=@system-service @mount
|
|
|
|
@SERVICE_WATCHDOG@
|
2020-03-13 17:38:09 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|
|
|
|
Alias=dbus-org.freedesktop.home1.service
|
2020-05-28 21:26:24 +00:00
|
|
|
Also=systemd-userdbd.service
|