summaryrefslogtreecommitdiffstats
path: root/roles/munin-master/files/lib/systemd/system/munin-cgi-graph.service
diff options
context:
space:
mode:
Diffstat (limited to 'roles/munin-master/files/lib/systemd/system/munin-cgi-graph.service')
-rw-r--r--roles/munin-master/files/lib/systemd/system/munin-cgi-graph.service8
1 files changed, 8 insertions, 0 deletions
diff --git a/roles/munin-master/files/lib/systemd/system/munin-cgi-graph.service b/roles/munin-master/files/lib/systemd/system/munin-cgi-graph.service
index 9e4d820..99aca7a 100644
--- a/roles/munin-master/files/lib/systemd/system/munin-cgi-graph.service
+++ b/roles/munin-master/files/lib/systemd/system/munin-cgi-graph.service
@@ -10,5 +10,13 @@ User=www-data
Group=munin
ExecStart=/usr/lib/munin/cgi/munin-cgi-graph
+# Hardening
+NoNewPrivileges=yes
+PrivateDevices=yes
+ProtectHome=yes
+ProtectSystem=full
+ReadOnlyDirectories=/
+ReadWriteDirectories=-/var/log/munin
+
[Install]
WantedBy=multi-user.target