summaryrefslogtreecommitdiffstats
path: root/sshuttle/firewall.py
diff options
context:
space:
mode:
authorBrian May <brian@linuxpenguins.xyz>2015-11-28 16:13:56 +1100
committerBrian May <brian@linuxpenguins.xyz>2015-11-28 16:13:56 +1100
commit191df92824ee12eac17edf9bae995702bafe5aaa (patch)
tree71f69aa8b0d81a1a7780f1bf3c48e895ff7133f2 /sshuttle/firewall.py
parent6dfbc467c0e0a6585a123d7426afbc5431abc6b5 (diff)
Ensure tempfiles are chmod 600
Diffstat (limited to 'sshuttle/firewall.py')
-rw-r--r--sshuttle/firewall.py2
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)