diff options
author | Indrajit Raychaudhuri <irc@indrajit.com> | 2023-09-13 01:52:23 -0500 |
---|---|---|
committer | Indrajit Raychaudhuri <irc@indrajit.com> | 2023-09-14 22:54:49 -0500 |
commit | 7a66413d6010485dd913832f54167bce38c12250 (patch) | |
tree | a6be17784c5777b9f287dc0fdfd7c18d00dd3671 /src | |
parent | 249f391f6898b9b4617b135952815d6f4675e9ee (diff) | |
download | vyos-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')
-rwxr-xr-x | src/conf_mode/dns_dynamic.py | 2 |
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 |