Files
kickstart/notify-online.service
Dustin C. Hatch d8118e0fce autoprovision: split script+unit into separate files
Now that we're using Jinja to render the kickstart scripts, we can
separate out scripts, systemd unit files, etc. into their own files and
`include` them.  This makes editing them much easier, especially since
syntax highlighting will work correctly.
2025-07-26 07:20:01 -05:00

43 lines
1002 B
Desktop File

[Unit]
Description=Notify infrastructure services that this host is online
ConditionFirstBoot=yes
After=sshd.service
After=network-online.target
Wants=network-online.target
After=systemd-user-sessions.service
[Service]
Type=exec
ExecStart=/usr/local/libexec/notify-online.sh
# Must run as root in order to read QEMU fw_config, so enable maximum
# sandbox restrictions.
CapabilityBoundingSet=
DeviceAllow=
DevicePolicy=closed
LockPersonality=yes
MemoryDenyWriteExecute=yes
NoNewPrivileges=yes
PrivateDevices=yes
PrivateUsers=yes
PrivateTmp=yes
ProcSubset=pid
ProtectClock=yes
ProtectControlGroups=yes
ProtectHome=yes
ProtectHostname=yes
ProtectKernelLogs=yes
ProtectKernelModules=yes
ProtectKernelTunables=yes
ProtectProc=invisible
ProtectSystem=strict
RestrictAddressFamilies=AF_INET AF_INET6
RestrictNamespaces=yes
RestrictRealtime=yes
RestrictSUIDSGID=yes
SystemCallArchitectures=native
SystemCallFilter=@system-service
SystemCallFilter=~@privileged @resources
[Install]
WantedBy=multi-user.target