Add sandboxing to ntfy.service.

See [systemd.exec(5)](https://man.archlinux.org/man/systemd.exec.5) to find out what the options mean!
This commit is contained in:
𝕍𝕖𝕝𝕠𝕔𝕚𝕗𝕪𝕖𝕣
2026-05-18 14:33:48 -04:00
parent 9302697a07
commit 726b9d2b2c
+12
View File
@@ -10,6 +10,18 @@ ExecReload=/bin/kill --signal HUP $MAINPID
Restart=on-failure
AmbientCapabilities=CAP_NET_BIND_SERVICE
LimitNOFILE=10000
PrivateDevices=true
ProtectClock=true
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectKernelLogs=true
RestrictRealtime=true
ProtectHostname=true
# These will be added in a future update.
# ProtectSystem=full
# PrivateTmp=true
[Install]
WantedBy=multi-user.target