41 lines
1.1 KiB
Desktop File
41 lines
1.1 KiB
Desktop File
[Unit]
|
|
Description=Morphit apt monitor — pending security update count
|
|
Documentation=https://git.agorise.net/agorise/morphit
|
|
After=network-online.target
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
# `apt-get update` needs root.
|
|
User=root
|
|
Group=root
|
|
|
|
EnvironmentFile=-/etc/morphit/apt-monitor.env
|
|
ExecStart=/opt/morphit/ops/scripts/morphit-apt-monitor.sh
|
|
|
|
# ─── Hardening ─────────────────────────────────────────────────
|
|
ProtectSystem=strict
|
|
ProtectHome=true
|
|
PrivateTmp=true
|
|
NoNewPrivileges=true
|
|
ProtectKernelTunables=true
|
|
ProtectKernelModules=true
|
|
ProtectKernelLogs=true
|
|
ProtectControlGroups=true
|
|
ProtectClock=true
|
|
RestrictRealtime=true
|
|
RestrictSUIDSGID=true
|
|
LockPersonality=true
|
|
MemoryDenyWriteExecute=true
|
|
LimitCORE=0
|
|
|
|
# apt-get update needs HTTPS outbound to ubuntu archives.
|
|
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
|
|
|
|
# apt-get update writes lock files + cached pkg lists.
|
|
ReadWritePaths=/var/lib/apt /var/cache/apt /var/lib/dpkg
|
|
|
|
SystemCallFilter=@system-service
|
|
SystemCallFilter=~@privileged @resources
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|