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