From 51aac10f6ad30a787b34e61ae43d1ec4336691e6 Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Mon, 22 Jan 2024 17:55:37 +0100 Subject: provide default for IDAllocation.allocation map arg target Most frequently, the root user is allocated. --- examples/userchroot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples') diff --git a/examples/userchroot.py b/examples/userchroot.py index 315a437..73d52b3 100755 --- a/examples/userchroot.py +++ b/examples/userchroot.py @@ -34,8 +34,8 @@ def main() -> None: subuids = linuxnamespaces.IDAllocation.loadsubid("uid") subgids = linuxnamespaces.IDAllocation.loadsubid("gid") - uidmap = subuids.allocatemap(65536, 0) - gidmap = subgids.allocatemap(65536, 0) + uidmap = subuids.allocatemap(65536) + gidmap = subgids.allocatemap(65536) linuxnamespaces.unshare_user_idmap( [uidmap], -- cgit v1.2.3