MCPcopy
hub / github.com/celery/celery / setuid

Function setuid

celery/platforms.py:523–525  ·  view source on GitHub ↗

Version of :func:`os.setuid` supporting usernames.

(uid)

Source from the content-addressed store, hash-verified

521
522
523def setuid(uid):
524 """Version of :func:`os.setuid` supporting usernames."""
525 os.setuid(parse_uid(uid))
526
527
528def maybe_drop_privileges(uid=None, gid=None):

Callers 2

test_setuidMethod · 0.90
_setuidFunction · 0.85

Calls 1

parse_uidFunction · 0.85

Tested by 1

test_setuidMethod · 0.72