2020-11-09 07:23:58 +03:00
# SPDX-License-Identifier: LGPL-2.1-or-later
2019-07-04 19:35:39 +03: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 15:07:10 +03:00
Description = Home Area Manager
2019-07-04 19:35:39 +03:00
Documentation = man:systemd-homed.service(8)
2020-09-29 09:03:10 +03:00
Documentation = man:org.freedesktop.home1(5)
2020-03-31 12:35:08 +03:00
After = home.mount
2019-07-04 19:35:39 +03:00
[Service]
BusName = org.freedesktop.home1
2020-09-18 23:01:49 +03:00
CapabilityBoundingSet = CAP_SYS_ADMIN CAP_CHOWN CAP_DAC_OVERRIDE CAP_FOWNER CAP_FSETID CAP_SETGID CAP_SETUID CAP_SYS_RESOURCE
2019-07-04 19:35:39 +03:00
DeviceAllow = /dev/loop-control rw
DeviceAllow = /dev/mapper/control rw
DeviceAllow = block-* rw
2021-05-16 12:55:36 +03:00
ExecStart = {{ROOTLIBEXECDIR}}/systemd-homed
2019-07-04 19:35:39 +03:00
IPAddressDeny = any
KillMode = mixed
2021-05-16 12:55:36 +03:00
LimitNOFILE = {{HIGH_RLIMIT_NOFILE}}
2019-07-04 19:35:39 +03: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 12:55:36 +03:00
{ { S E R V I C E _ W A T C H D O G } }
2020-03-13 20:38:09 +03:00
[Install]
WantedBy = multi-user.target
Alias = dbus-org.freedesktop.home1.service
2020-09-21 19:25:46 +03:00
Also = systemd-homed-activate.service systemd-userdbd.service