From 9a8ad3a270a409f7c2c3522820b28e6cd29ddfba Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 17 Feb 2022 15:54:13 +0100 Subject: vidhar: ... --- hosts/vidhar/borg/copy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hosts/vidhar/borg') diff --git a/hosts/vidhar/borg/copy.py b/hosts/vidhar/borg/copy.py index 1a415732..9402560c 100755 --- a/hosts/vidhar/borg/copy.py +++ b/hosts/vidhar/borg/copy.py @@ -96,8 +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) - ps_effective = set(pyprctl.Cap.SETUID, pyprctl.Cap.SETGID) - ps_ambient = set(pyprctl.Cap.SYS_ADMIN) + ps_effective = {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)) pyprctl.cap_inheritable.add(*ps_ambient) -- cgit v1.2.3