diff options
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/withallsubuids.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/examples/withallsubuids.py b/examples/withallsubuids.py index 8b90e9a..ead0482 100755 --- a/examples/withallsubuids.py +++ b/examples/withallsubuids.py @@ -47,13 +47,10 @@ def main() -> None: while caps: cap = caps & (~caps + 1) caps ^= cap - linuxnamespaces.call_libc( - "prctl", + linuxnamespaces.prctl( 47, # PR_CAP_AMBIENT 2, # PR_CAP_AMBIENT_RAISE cap.bit_length() - 1, - 0, - 0, ) if len(sys.argv) > 1: os.execvp(sys.argv[1], sys.argv[1:]) |