2020-11-09 04:23:58 +00:00
|
|
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
2019-07-04 16:35:39 +00:00
|
|
|
#
|
|
|
|
# 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
|
2021-05-16 09:55:36 +00:00
|
|
|
ExecStart={{ROOTLIBEXECDIR}}/systemd-homed
|
2019-07-04 16:35:39 +00:00
|
|
|
IPAddressDeny=any
|
|
|
|
KillMode=mixed
|
2021-05-16 09:55:36 +00:00
|
|
|
LimitNOFILE={{HIGH_RLIMIT_NOFILE}}
|
2019-07-04 16:35:39 +00:00
|
|
|
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
|
2021-05-16 09:55:36 +00:00
|
|
|
{{SERVICE_WATCHDOG}}
|
2020-03-13 17:38:09 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|
|
|
|
Alias=dbus-org.freedesktop.home1.service
|
2020-09-21 16:25:46 +00:00
|
|
|
Also=systemd-homed-activate.service systemd-userdbd.service
|