MCPcopy Create free account
hub / github.com/apenwarr/sshuttle / _sysctl_set

Function _sysctl_set

firewall.py:185–188  ·  view source on GitHub ↗
(name, val)

Source from the content-addressed store, hash-verified

183
184
185def _sysctl_set(name, val):
186 argv = ['sysctl', '-w', '%s=%s' % (name, val)]
187 debug1('>> %s\n' % ' '.join(argv))
188 return ssubprocess.call(argv, stdout = open('/dev/null', 'w'))
189
190
191_changedctls = []

Callers 2

sysctl_setFunction · 0.85
do_ipfwFunction · 0.85

Calls 1

debug1Function · 0.85

Tested by

no test coverage detected