From 1380ff3484b8b0992d280f50abadcd65b89ce11f Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 17 Feb 2022 16:04:24 +0100 Subject: vidhar: ... --- hosts/vidhar/borg/copy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hosts') diff --git a/hosts/vidhar/borg/copy.py b/hosts/vidhar/borg/copy.py index f5fc9cd9..022bb27f 100755 --- a/hosts/vidhar/borg/copy.py +++ b/hosts/vidhar/borg/copy.py @@ -94,7 +94,7 @@ def copy_archive(src_repo_path, dst_repo_path, entry): child = os.fork() if child == 0: # print('unshare/chroot', file=stderr) - uid, gid = os.getuid(), os.getgid() + uid, gid = os.geteuid(), os.getegid() unshare.unshare(unshare.CLONE_NEWNS | unshare.CLONE_NEWUSER) ps_effective = {} # {pyprctl.Cap.SETUID, pyprctl.Cap.SETGID} ps_ambient = {pyprctl.Cap.SYS_ADMIN} -- cgit v1.2.3