summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-05-17 11:02:46 +0200
committerChristian Poessinger <christian@poessinger.com>2020-05-17 11:02:50 +0200
commit8117270c122cf1c4a19b12f0d98cdbcce4eb2db5 (patch)
treeece8174a11f4e597edbec7246fb12d3e08ec8d0b /src/conf_mode
parent7d01f7fec95f65705ec886f4de8bce21e0bfee07 (diff)
downloadvyos-1x-8117270c122cf1c4a19b12f0d98cdbcce4eb2db5.tar.gz
vyos-1x-8117270c122cf1c4a19b12f0d98cdbcce4eb2db5.zip
powerdns: T2470: adjust config file permissions for recursor 4.3
PowerDNS recursor 4.3 now uns as user pdns and group pdns, thus the generated configuration file and directory need to have the appropriate permissions set.
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/dns_forwarding.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/dns_forwarding.py b/src/conf_mode/dns_forwarding.py
index 7f7417b00..f87c198f7 100755
--- a/src/conf_mode/dns_forwarding.py
+++ b/src/conf_mode/dns_forwarding.py
@@ -152,7 +152,7 @@ def generate(dns):
if dns is None:
return None
- render(config_file, 'dns-forwarding/recursor.conf.tmpl', dns, trim_blocks=True)
+ render(config_file, 'dns-forwarding/recursor.conf.tmpl', dns, trim_blocks=True, user='pdns', group='pdns')
return None
def apply(dns):