From 0958e8f170b6e1d369d3036c1b5390ec6fcd0ae9 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 17 Feb 2022 15:42:35 +0100 Subject: vidhar: ... --- hosts/vidhar/borg/copy.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'hosts/vidhar') diff --git a/hosts/vidhar/borg/copy.py b/hosts/vidhar/borg/copy.py index 8eea7794..ab5e027d 100755 --- a/hosts/vidhar/borg/copy.py +++ b/hosts/vidhar/borg/copy.py @@ -96,6 +96,8 @@ def copy_archive(src_repo_path, dst_repo_path, entry): # print('unshare/chroot', file=stderr) uid, gid = os.getuid(), os.getgid() unshare.unshare(unshare.CLONE_NEWNS | unshare.CLONE_NEWUSER) + with open('/proc/self/uid_map', 'r') as uid_map: + print(uid_map.read(), file=stderr) with open('/proc/self/setgroups', 'w') as setgroups: setgroups.write('deny') with open('/proc/self/uid_map', 'w') as uid_map: -- cgit v1.2.3