From e51921b1242b40eefd16f29bcc408c6ac0df1619 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Thu, 12 May 2016 11:34:36 +0200 Subject: Add hardening options to our systemd unit files. --- .../munin-master/files/lib/systemd/system/munin-cgi-html.service | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'roles/munin-master/files/lib/systemd/system/munin-cgi-html.service') diff --git a/roles/munin-master/files/lib/systemd/system/munin-cgi-html.service b/roles/munin-master/files/lib/systemd/system/munin-cgi-html.service index 11a7470..119d3a2 100644 --- a/roles/munin-master/files/lib/systemd/system/munin-cgi-html.service +++ b/roles/munin-master/files/lib/systemd/system/munin-cgi-html.service @@ -10,5 +10,13 @@ User=www-data Group=munin ExecStart=/usr/lib/munin/cgi/munin-cgi-html +# Hardening +NoNewPrivileges=yes +PrivateDevices=yes +ProtectHome=yes +ProtectSystem=full +ReadOnlyDirectories=/ +ReadWriteDirectories=-/var/log/munin + [Install] WantedBy=multi-user.target -- cgit v1.2.3