2020-11-09 12:23:58 +08:00
|
|
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
2017-11-19 00:35:03 +08:00
|
|
|
#
|
2015-01-22 10:57:15 +08: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]
|
|
|
|
Description=Virtual Machine and Container Download Service
|
|
|
|
Documentation=man:systemd-importd.service(8)
|
2020-09-29 14:03:10 +08:00
|
|
|
Documentation=man:org.freedesktop.import1(5)
|
2015-01-22 10:57:15 +08:00
|
|
|
|
|
|
|
[Service]
|
2021-05-16 17:55:36 +08:00
|
|
|
ExecStart={{ROOTLIBEXECDIR}}/systemd-importd
|
2015-01-22 10:57:15 +08:00
|
|
|
BusName=org.freedesktop.import1
|
2015-04-24 22:12:28 +08:00
|
|
|
KillMode=mixed
|
2021-05-22 04:04:33 +08: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 19:23:27 +08:00
|
|
|
NoNewPrivileges=yes
|
2016-06-08 20:23:37 +08:00
|
|
|
MemoryDenyWriteExecute=yes
|
2019-02-19 06:30:12 +08:00
|
|
|
ProtectHostname=yes
|
2016-08-26 19:23:27 +08:00
|
|
|
RestrictRealtime=yes
|
2017-02-09 17:28:23 +08:00
|
|
|
RestrictNamespaces=net
|
2016-08-26 19:23:27 +08:00
|
|
|
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
|
2018-04-19 17:04:17 +08:00
|
|
|
SystemCallFilter=@system-service @mount
|
|
|
|
SystemCallErrorNumber=EPERM
|
2017-02-09 05:32:37 +08:00
|
|
|
SystemCallArchitectures=native
|
2017-09-15 01:45:40 +08:00
|
|
|
LockPersonality=yes
|
2021-05-16 17:55:36 +08:00
|
|
|
{{SERVICE_WATCHDOG}}
|