• Steven McDonald's avatar
    Add --no-sudo-pythonpath option · f528bb98
    Steven McDonald authored
    This provides a way to avoid setting PYTHONPATH when invoking the
    privileged part of sshuttle with sudo. This is useful if running
    sshuttle as a PEX archive, as Telepresence does, as it enables
    sshuttle's sudo access to be securely locked down.
    
    PEX archives will extract themselves into the invoking user's home
    directory, which means that the invoking user has full control over
    the code in them. This makes restricting sudo access with
    PYTHONPATH set completely pointless in this scenario -- an attacker
    could put any code into ~/.pex and gain full root access anyway.
    
    On the other hand, if sshuttle is a PEX archive, the privileged
    invocation will simply extract itself into /root/.pex anyway, so
    there is no need to set PYTHONPATH in this case.
    f528bb98
Name
Last commit
Last update
docs Loading commit data...
sshuttle Loading commit data...
.gitignore Loading commit data...
.prospector.yml Loading commit data...
.travis.yml Loading commit data...
CHANGES.rst Loading commit data...
LICENSE Loading commit data...
MANIFEST.in Loading commit data...
README.rst Loading commit data...
bandit.yml Loading commit data...
conftest.py Loading commit data...
requirements-tests.txt Loading commit data...
requirements.txt Loading commit data...
run Loading commit data...
setup.cfg Loading commit data...
setup.py Loading commit data...
tox.ini Loading commit data...