summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorIndrajit Raychaudhuri <irc@indrajit.com>2023-09-13 01:52:23 -0500
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2023-09-15 05:31:38 +0000
commit0ea915fc81bf6ae681116cffb93e4de18685da70 (patch)
treebddc2ea1b97bf611d99cce38f8e3b6bbc4a68379 /src/conf_mode
parentc5498ec219d02c1f671c0ff8b8e780d684ee24b0 (diff)
downloadvyos-1x-0ea915fc81bf6ae681116cffb93e4de18685da70.tar.gz
vyos-1x-0ea915fc81bf6ae681116cffb93e4de18685da70.zip
ddclient: T5585: Fix file access mode for dynamic dns configuration
ddclient.conf file is expected to have permission 600. We need to set the permission explicitly while creating the file. (cherry picked from commit 7a66413d6010485dd913832f54167bce38c12250)
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/dns_dynamic.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/dns_dynamic.py b/src/conf_mode/dns_dynamic.py
index ab80defe8..4b1aed742 100755
--- a/src/conf_mode/dns_dynamic.py
+++ b/src/conf_mode/dns_dynamic.py
@@ -104,7 +104,7 @@ def generate(dyndns):
if not dyndns or 'address' not in dyndns:
return None
- render(config_file, 'dns-dynamic/ddclient.conf.j2', dyndns)
+ render(config_file, 'dns-dynamic/ddclient.conf.j2', dyndns, permission=0o600)
render(systemd_override, 'dns-dynamic/override.conf.j2', dyndns)
return None