diff options
author | Indrajit Raychaudhuri <irc@indrajit.com> | 2023-09-13 01:52:23 -0500 |
---|---|---|
committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2023-09-15 05:31:38 +0000 |
commit | 0ea915fc81bf6ae681116cffb93e4de18685da70 (patch) | |
tree | bddc2ea1b97bf611d99cce38f8e3b6bbc4a68379 | |
parent | c5498ec219d02c1f671c0ff8b8e780d684ee24b0 (diff) | |
download | vyos-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)
-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 |