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)
2022-01-04 15:56:11 +03:00
After = home.mount dbus.service
2019-07-04 19:35:39 +03:00
[Service]
BusName = org.freedesktop.home1
2021-11-15 18:21:59 +03:00
CapabilityBoundingSet = CAP_SYS_ADMIN CAP_CHOWN CAP_DAC_OVERRIDE CAP_FOWNER CAP_FSETID CAP_SETGID CAP_SETUID CAP_SYS_RESOURCE CAP_SETPCAP CAP_DAC_READ_SEARCH CAP_SETFCAP
2019-07-04 19:35:39 +03:00
DeviceAllow = /dev/loop-control rw
DeviceAllow = /dev/mapper/control rw
DeviceAllow = block-* rw
2021-07-12 20:57:43 +03:00
DeviceAllow = char-hidraw rw
2023-06-12 04:15:19 +03:00
ExecStart = {{LIBEXECDIR}}/systemd-homed
2019-07-04 19:35:39 +03:00
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
2021-08-31 11:04:06 +03:00
RestrictAddressFamilies = AF_UNIX AF_NETLINK AF_ALG AF_INET AF_INET6
2021-11-15 18:21:59 +03:00
RestrictNamespaces = mnt user
2019-07-04 19:35:39 +03:00
RestrictRealtime = yes
StateDirectory = systemd/home
SystemCallArchitectures = native
SystemCallErrorNumber = EPERM
2023-12-01 19:29:32 +03:00
SystemCallFilter = @system-service @mount quotactl
2022-09-05 16:15:36 +03:00
TimeoutStopSec = 3min
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
2023-11-22 12:58:14 +03:00
Also = systemd-homed-activate.service systemd-userdbd.service systemd-homed-firstboot.service