Add UNBOUND_CHROOT_DIR to chown service.

This commit is contained in:
ninetailedtori 2025-12-14 19:42:11 +00:00
parent 8b0b340cd6
commit 87367232cf
No known key found for this signature in database
GPG key ID: 190F038FA508352E

View file

@ -61,6 +61,7 @@ WantedBy=multi-user.target
[Service]
ExecStart=/bin/chown -R unbound:unbound @UNBOUND_RUN_DIR@
ExecStart=/bin/chown -R unbound:unbound @UNBOUND_CHROOT_DIR@
ExecStart=/bin/chown unbound:unbound @UNBOUND_ROOTKEY_FILE@
NotifyAccess=main
Type=oneshot
@ -85,4 +86,4 @@ SystemCallArchitectures=native
RestrictNamespaces=yes
LockPersonality=yes
RestrictSUIDSGID=yes
ReadWritePaths=@UNBOUND_RUN_DIR@ @UNBOUND_ROOTKEY_FILE@
ReadWritePaths=@UNBOUND_RUN_DIR@ @UNBOUND_CHROOT_DIR@ @UNBOUND_ROOTKEY_FILE@