1#  SPDX-License-Identifier: LGPL-2.1-or-later
2#
3#  This file is part of systemd.
4#
5#  systemd is free software; you can redistribute it and/or modify it
6#  under the terms of the GNU Lesser General Public License as published by
7#  the Free Software Foundation; either version 2.1 of the License, or
8#  (at your option) any later version.
9
10[Unit]
11Description=Automatic System Update
12Documentation=man:systemd-sysupdate.service(8)
13Wants=network-online.target
14After=network-online.target
15ConditionVirtualization=!container
16
17[Service]
18Type=simple
19NotifyAccess=main
20ExecStart={{ROOTLIBEXECDIR}}/systemd-sysupdate update
21CapabilityBoundingSet=CAP_CHOWN CAP_FOWNER CAP_FSETID CAP_MKNOD CAP_SETFCAP CAP_SYS_ADMIN CAP_SETPCAP CAP_DAC_OVERRIDE CAP_LINUX_IMMUTABLE
22NoNewPrivileges=yes
23MemoryDenyWriteExecute=yes
24ProtectHostname=yes
25RestrictRealtime=yes
26RestrictNamespaces=net
27RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
28SystemCallFilter=@system-service @mount
29SystemCallErrorNumber=EPERM
30SystemCallArchitectures=native
31LockPersonality=yes
32
33[Install]
34Also=systemd-sysupdate.timer
35