diff options
author | Brian May <brian@linuxpenguins.xyz> | 2015-11-28 16:13:56 +1100 |
---|---|---|
committer | Brian May <brian@linuxpenguins.xyz> | 2015-11-28 16:13:56 +1100 |
commit | 191df92824ee12eac17edf9bae995702bafe5aaa (patch) | |
tree | 71f69aa8b0d81a1a7780f1bf3c48e895ff7133f2 /sshuttle/firewall.py | |
parent | 6dfbc467c0e0a6585a123d7426afbc5431abc6b5 (diff) |
Ensure tempfiles are chmod 600
Diffstat (limited to 'sshuttle/firewall.py')
-rw-r--r-- | sshuttle/firewall.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sshuttle/firewall.py b/sshuttle/firewall.py index b5beb98..74d1494 100644 --- a/sshuttle/firewall.py +++ b/sshuttle/firewall.py @@ -41,7 +41,7 @@ def rewrite_etc_hosts(port): os.chmod(tmpname, st.st_mode) else: os.chown(tmpname, 0, 0) - os.chmod(tmpname, 0o644) + os.chmod(tmpname, 0o600) os.rename(tmpname, HOSTSFILE) |