summaryrefslogtreecommitdiffstats
path: root/roles/bacula-sd/files/lib
diff options
context:
space:
mode:
Diffstat (limited to 'roles/bacula-sd/files/lib')
-rw-r--r--roles/bacula-sd/files/lib/systemd/system/bacula-sd.service10
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