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. --- roles/lists/files/lib/systemd/system/wwsympa.service | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'roles/lists') diff --git a/roles/lists/files/lib/systemd/system/wwsympa.service b/roles/lists/files/lib/systemd/system/wwsympa.service index ea2a78f..b525145 100644 --- a/roles/lists/files/lib/systemd/system/wwsympa.service +++ b/roles/lists/files/lib/systemd/system/wwsympa.service @@ -10,5 +10,14 @@ User=sympa Group=sympa ExecStart=/usr/lib/cgi-bin/sympa/wwsympa.fcgi +# Hardening +NoNewPrivileges=yes +PrivateDevices=yes +ProtectHome=yes +ProtectSystem=full +ReadOnlyDirectories=/ +ReadWriteDirectories=-/var/lib/sympa +ReadWriteDirectories=-/var/run/sympa + [Install] WantedBy=multi-user.target -- cgit v1.2.3