diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2016-05-12 11:34:36 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2016-05-12 11:34:36 +0200 |
commit | e51921b1242b40eefd16f29bcc408c6ac0df1619 (patch) | |
tree | 12f93d8d743d39fc9a4d1d6836d04eccf163b24f /roles/bacula-sd | |
parent | 90d498034b891123350785a134402172de477f4f (diff) |
Add hardening options to our systemd unit files.
Diffstat (limited to 'roles/bacula-sd')
-rw-r--r-- | roles/bacula-sd/files/lib/systemd/system/bacula-sd.service | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/roles/bacula-sd/files/lib/systemd/system/bacula-sd.service b/roles/bacula-sd/files/lib/systemd/system/bacula-sd.service index 4c3f81d..ca147a7 100644 --- a/roles/bacula-sd/files/lib/systemd/system/bacula-sd.service +++ b/roles/bacula-sd/files/lib/systemd/system/bacula-sd.service @@ -10,5 +10,15 @@ User=bacula Group=tape ExecStart=/usr/sbin/bacula-sd -c /etc/bacula/bacula-sd.conf +# Hardening +NoNewPrivileges=yes +PrivateDevices=yes +ProtectHome=yes +ProtectSystem=full +ReadOnlyDirectories=/ +ReadWriteDirectories=-/var/lib/bacula +ReadWriteDirectories=-/var/run/bacula +ReadWriteDirectories=/mnt/backup/bacula + [Install] WantedBy=multi-user.target |