diff options
Diffstat (limited to 'linuxnamespaces')
-rw-r--r-- | linuxnamespaces/syscalls.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/linuxnamespaces/syscalls.py b/linuxnamespaces/syscalls.py index c98d776..ab715f2 100644 --- a/linuxnamespaces/syscalls.py +++ b/linuxnamespaces/syscalls.py @@ -622,6 +622,11 @@ def pivot_root(new_root: PathConvertible, put_old: PathConvertible) -> None: """Python wrapper for pivot_root(2).""" call_libc("pivot_root", os.fsencode(new_root), os.fsencode(put_old)) +def prctl( + option: int, arg2: int = 0, arg3: int = 0, arg4: int = 0, arg5: int = 0 +) -> int: + """Python wrapper for prctl(2).""" + return call_libc("prctl", option, arg2, arg3, arg4, arg5) def setns(fd: int, nstype: CloneFlags = CloneFlags.NONE) -> None: """Python wrapper for setns(2).""" |