MCPcopy Index your code
hub / github.com/sshuttle/sshuttle / _sysctl_set

Function _sysctl_set

sshuttle/methods/ipfw.py:65–69  ·  view source on GitHub ↗
(name, val)

Source from the content-addressed store, hash-verified

63
64
65def _sysctl_set(name, val):
66 argv = ['sysctl', '-w', '%s=%s' % (name, val)]
67 debug1('>> %s' % ' '.join(argv))
68 return ssubprocess.call(argv, stdout=open(os.devnull, 'w'), env=get_env())
69 # No env: No output. (Or error that won't be parsed.)
70
71
72_changedctls = []

Callers 2

sysctl_setFunction · 0.85
setup_firewallMethod · 0.85

Calls 2

debug1Function · 0.90
get_envFunction · 0.90

Tested by

no test coverage detected