aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Fink2026-09-20 12:18:20 +0200
committerDennis Fink2026-09-20 12:18:20 +0200
commitb0fd72a136a4ec36c54b5ae5c27479acb7e7a020 (patch)
tree0d4a4b53089402b6829aabe22d1e0007ea5f4e43
parent0f1d5637df9286af9999fc7d1c03025e82ffda34 (diff)
downloadprometheus-pacman-exporter-b0fd72a136a4ec36c54b5ae5c27479acb7e7a020.tar.gz
prometheus-pacman-exporter-b0fd72a136a4ec36c54b5ae5c27479acb7e7a020.zip
fix(systemd): allow pacman commands to run
Remove syscall restrictions that prevent pacman and related subprocesses from running successfully under the systemd service. Also remove the outdated comment about ProtectSystem and ProtectHome.
-rw-r--r--contrib/prometheus-pacman-exporter.service3
1 files changed, 0 insertions, 3 deletions
diff --git a/contrib/prometheus-pacman-exporter.service b/contrib/prometheus-pacman-exporter.service
index 770295c..82b5854 100644
--- a/contrib/prometheus-pacman-exporter.service
+++ b/contrib/prometheus-pacman-exporter.service
@@ -17,7 +17,6 @@ ReadWritePaths=/var/lib/prometheus/node-exporter
PrivateTmp=true
# Mount a minimal /dev without the access to raw block or character devices
PrivateDevices=true
-# ProtectSystem and ProtectHome are ineffective for root and intentionally omitted
# Hide other processes in /proc
ProtectProc=invisible
@@ -51,8 +50,6 @@ NoNewPrivileges=true
# Syscall filtering
SystemCallArchitectures=native
SystemCallFilter=@system-service
-SystemCallFilter=~@privileged @resources @mount @swap @reboot
-SystemCallFilter=setfsuid setfsgid
[Install]
WantedBy=multi-user.target