diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2022-02-17 16:05:33 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2022-02-17 16:05:33 +0100 |
commit | a4443a4bf773196a8e420a840f34d1124857a375 (patch) | |
tree | 03349ac6231d4fc91cdea1785d8127debd095584 | |
parent | 1380ff3484b8b0992d280f50abadcd65b89ce11f (diff) | |
download | nixos-a4443a4bf773196a8e420a840f34d1124857a375.tar nixos-a4443a4bf773196a8e420a840f34d1124857a375.tar.gz nixos-a4443a4bf773196a8e420a840f34d1124857a375.tar.bz2 nixos-a4443a4bf773196a8e420a840f34d1124857a375.tar.xz nixos-a4443a4bf773196a8e420a840f34d1124857a375.zip |
vidhar: ...
-rwxr-xr-x | hosts/vidhar/borg/copy.py | 2 |
1 files changed, 1 insertions, 1 deletions
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): | |||
96 | # print('unshare/chroot', file=stderr) | 96 | # print('unshare/chroot', file=stderr) |
97 | uid, gid = os.geteuid(), os.getegid() | 97 | uid, gid = os.geteuid(), os.getegid() |
98 | unshare.unshare(unshare.CLONE_NEWNS | unshare.CLONE_NEWUSER) | 98 | unshare.unshare(unshare.CLONE_NEWNS | unshare.CLONE_NEWUSER) |
99 | ps_effective = {} # {pyprctl.Cap.SETUID, pyprctl.Cap.SETGID} | 99 | ps_effective = set() # {pyprctl.Cap.SETUID, pyprctl.Cap.SETGID} |
100 | ps_ambient = {pyprctl.Cap.SYS_ADMIN} | 100 | ps_ambient = {pyprctl.Cap.SYS_ADMIN} |
101 | pyprctl.cap_permitted.add(*(ps_effective | ps_ambient)) | 101 | pyprctl.cap_permitted.add(*(ps_effective | ps_ambient)) |
102 | pyprctl.cap_effective.add(*(ps_effective | ps_ambient)) | 102 | pyprctl.cap_effective.add(*(ps_effective | ps_ambient)) |