2020-11-09 07:23:58 +03:00
# SPDX-License-Identifier: LGPL-2.1-or-later
2017-11-18 19:35:03 +03:00
#
2015-01-22 05:57:15 +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]
2024-05-08 12:11:43 +03:00
Description = Disk Image Download Service
2015-01-22 05:57:15 +03:00
Documentation = man:systemd-importd.service(8)
2020-09-29 09:03:10 +03:00
Documentation = man:org.freedesktop.import1(5)
2024-05-08 12:11:43 +03:00
DefaultDependencies = no
After = systemd-importd.socket
WantsMountsFor = /var/lib/machines /var/lib/portables /var/lib/extensions /var/lib/confexts
After = systemd-remount-fs.service
Before = shutdown.target
Conflicts = shutdown.target
2015-01-22 05:57:15 +03:00
[Service]
2024-01-09 14:51:54 +03:00
Type = notify
2023-06-12 04:15:19 +03:00
ExecStart = {{LIBEXECDIR}}/systemd-importd
2015-01-22 05:57:15 +03:00
BusName = org.freedesktop.import1
2015-04-24 17:12:28 +03:00
KillMode = mixed
2021-05-21 23:04:33 +03:00
CapabilityBoundingSet = CAP_CHOWN CAP_FOWNER CAP_FSETID CAP_MKNOD CAP_SETFCAP CAP_SYS_ADMIN CAP_SETPCAP CAP_DAC_OVERRIDE CAP_LINUX_IMMUTABLE
2016-08-26 14:23:27 +03:00
NoNewPrivileges = yes
2016-06-08 15:23:37 +03:00
MemoryDenyWriteExecute = yes
2019-02-19 01:30:12 +03:00
ProtectHostname = yes
2016-08-26 14:23:27 +03:00
RestrictRealtime = yes
2017-02-09 12:28:23 +03:00
RestrictNamespaces = net
2016-08-26 14:23:27 +03:00
RestrictAddressFamilies = AF_UNIX AF_INET AF_INET6
2018-04-19 12:04:17 +03:00
SystemCallFilter = @system-service @mount
SystemCallErrorNumber = EPERM
2017-02-09 00:32:37 +03:00
SystemCallArchitectures = native
2017-09-14 20:45:40 +03:00
LockPersonality = yes
2021-05-16 12:55:36 +03:00
{ { S E R V I C E _ W A T C H D O G } }