Debian Codegraph @

units/systemd-sysupdate.service

raw
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]
11 Description=Automatic System Update
12 Documentation=man:systemd-sysupdate.service(8)
13 Wants=network-online.target
14 After=network-online.target
15 ConditionVirtualization=!container
16
17 [Service]
18 Type=simple
19 NotifyAccess=main
20 ExecStart=systemd-sysupdate update
21 CapabilityBoundingSet=CAP_CHOWN CAP_FOWNER CAP_FSETID CAP_MKNOD CAP_SETFCAP CAP_SYS_ADMIN CAP_SETPCAP CAP_DAC_OVERRIDE CAP_LINUX_IMMUTABLE
22 NoNewPrivileges=yes
23 MemoryDenyWriteExecute=yes
24 ProtectHostname=yes
25 RestrictRealtime=yes
26 RestrictNamespaces=net
27 RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
28 SystemCallFilter=@system-service @mount
29 SystemCallErrorNumber=EPERM
30 SystemCallArchitectures=native
31 LockPersonality=yes
32
33 [Install]
34 Also=systemd-sysupdate.timer