• Avery Pennarun's avatar
    firewall: preserve permissions on /etc/hosts · 77cf37e0
    Avery Pennarun authored
    Pointed out by nisc on github.  If people use an unusual umask or have funny
    permissions on /etc/hosts, sshuttle would screw it up.
    
    We also use hardlinks to atomically backup the original /etc/hosts to
    /etc/hosts.sbak the first time, rather than manually copying it.  Not sure
    why I didn't think of that before.
    77cf37e0
Name
Last commit
Last update
.gitignore Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
assembler.py Loading commit data...
client.py Loading commit data...
firewall.py Loading commit data...
helpers.py Loading commit data...
hostwatch.py Loading commit data...
main.py Loading commit data...
options.py Loading commit data...
server.py Loading commit data...
ssh.py Loading commit data...
sshuttle Loading commit data...
ssnet.py Loading commit data...