diff options
| author | Andrew Dunham <andrew@du.nham.ca> | 2024-06-25 23:25:44 -0400 |
|---|---|---|
| committer | Andrew Dunham <andrew@du.nham.ca> | 2024-06-26 00:02:05 -0400 |
| commit | 53a5d00fffca113d9ea21c91cbb9634d2528b074 (patch) | |
| tree | 6aea42a8378c7e019c50122ca0a9b4c456c9fde8 /control/controlknobs | |
| parent | 8161024176ce3adaf410295f4b6eee738cba0471 (diff) | |
| download | tailscale-53a5d00fffca113d9ea21c91cbb9634d2528b074.tar.xz tailscale-53a5d00fffca113d9ea21c91cbb9634d2528b074.zip | |
net/dns: ensure /etc/resolv.conf is world-readable even with a umask
Previously, if we had a umask set (e.g. 0027) that prevented creating a
world-readable file, /etc/resolv.conf would be created without the o+r
bit and thus other users may be unable to resolve DNS.
Since a umask only applies to file creation, chmod the file after
creation and before renaming it to ensure that it has the appropriate
permissions.
Updates #12609
Signed-off-by: Andrew Dunham <andrew@du.nham.ca>
Change-Id: I2a05d64f4f3a8ee8683a70be17a7da0e70933137
Diffstat (limited to 'control/controlknobs')
0 files changed, 0 insertions, 0 deletions
