summaryrefslogtreecommitdiff
path: root/src/conf_mode/dns_dynamic.py
diff options
context:
space:
mode:
authorIndrajit Raychaudhuri <irc@indrajit.com>2023-09-13 01:52:23 -0500
committerIndrajit Raychaudhuri <irc@indrajit.com>2023-09-14 22:54:49 -0500
commit7a66413d6010485dd913832f54167bce38c12250 (patch)
treea6be17784c5777b9f287dc0fdfd7c18d00dd3671 /src/conf_mode/dns_dynamic.py
parent249f391f6898b9b4617b135952815d6f4675e9ee (diff)
downloadvyos-1x-7a66413d6010485dd913832f54167bce38c12250.tar.gz
vyos-1x-7a66413d6010485dd913832f54167bce38c12250.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.
Diffstat (limited to 'src/conf_mode/dns_dynamic.py')
-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