summaryrefslogtreecommitdiffstats
path: root/etc/inc/unbound.inc
diff options
context:
space:
mode:
authorWarren Baker <warren@decoy.co.za>2011-10-01 23:06:13 +0200
committerWarren Baker <warren@decoy.co.za>2011-10-01 23:06:13 +0200
commit2b6d9c41cf08ee6cf9f62064c5bd7c8821d8630e (patch)
tree618ced872bd3469ba81b2e7196eb59aa68cf1b35 /etc/inc/unbound.inc
parent0a3d62f7c96db4d70f85bdc897211da04b8741ee (diff)
downloadpfsense-2b6d9c41cf08ee6cf9f62064c5bd7c8821d8630e.zip
pfsense-2b6d9c41cf08ee6cf9f62064c5bd7c8821d8630e.tar.gz
Ensure unbound is owner of ssl files
Diffstat (limited to 'etc/inc/unbound.inc')
-rw-r--r--etc/inc/unbound.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/inc/unbound.inc b/etc/inc/unbound.inc
index 685cb1e..d1a9726 100644
--- a/etc/inc/unbound.inc
+++ b/etc/inc/unbound.inc
@@ -169,8 +169,11 @@ EOD;
function unbound_keys_setup() {
global $g;
- if (!file_exists("{$g['unbound_chroot_path']}/unbound_control.key"))
+ if (!file_exists("{$g['unbound_chroot_path']}/unbound_control.key")) {
mwexec("/usr/local/sbin/unbound-control-setup -d {$g['unbound_chroot_path']}/etc");
+ @chown("{$g['unbound_chroot_path']}/etc/unbound_*", "unbound");
+ @chgrp("{$g['unbound_chroot_path']}/etc/unbound_*", "wheel");
+ }
}
/* Generation of Unbound statistics */
OpenPOWER on IntegriCloud