From a4443a4bf773196a8e420a840f34d1124857a375 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 17 Feb 2022 16:05:33 +0100 Subject: vidhar: ... --- hosts/vidhar/borg/copy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hosts/vidhar/borg/copy.py b/hosts/vidhar/borg/copy.py index 022bb27f..8cfcbd56 100755 --- a/hosts/vidhar/borg/copy.py +++ b/hosts/vidhar/borg/copy.py @@ -96,7 +96,7 @@ def copy_archive(src_repo_path, dst_repo_path, entry): # print('unshare/chroot', file=stderr) uid, gid = os.geteuid(), os.getegid() unshare.unshare(unshare.CLONE_NEWNS | unshare.CLONE_NEWUSER) - ps_effective = {} # {pyprctl.Cap.SETUID, pyprctl.Cap.SETGID} + ps_effective = set() # {pyprctl.Cap.SETUID, pyprctl.Cap.SETGID} ps_ambient = {pyprctl.Cap.SYS_ADMIN} pyprctl.cap_permitted.add(*(ps_effective | ps_ambient)) pyprctl.cap_effective.add(*(ps_effective | ps_ambient)) -- cgit v1.2.3