summaryrefslogtreecommitdiff
path: root/hosts/vidhar
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-02-17 15:55:30 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2022-02-17 15:55:30 +0100
commit69b373acd6079f857462a0653c12e86f74bb00b1 (patch)
treedb1dfe7ca7dcbea2cd00c305ef168afb2a32a354 /hosts/vidhar
parent9a8ad3a270a409f7c2c3522820b28e6cd29ddfba (diff)
downloadnixos-69b373acd6079f857462a0653c12e86f74bb00b1.tar
nixos-69b373acd6079f857462a0653c12e86f74bb00b1.tar.gz
nixos-69b373acd6079f857462a0653c12e86f74bb00b1.tar.bz2
nixos-69b373acd6079f857462a0653c12e86f74bb00b1.tar.xz
nixos-69b373acd6079f857462a0653c12e86f74bb00b1.zip
vidhar: ...
Diffstat (limited to 'hosts/vidhar')
-rwxr-xr-xhosts/vidhar/borg/copy.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/hosts/vidhar/borg/copy.py b/hosts/vidhar/borg/copy.py
index 9402560c..4858db78 100755
--- a/hosts/vidhar/borg/copy.py
+++ b/hosts/vidhar/borg/copy.py
@@ -98,8 +98,8 @@ def copy_archive(src_repo_path, dst_repo_path, entry):
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 = {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))
103 pyprctl.cap_inheritable.add(*ps_ambient) 103 pyprctl.cap_inheritable.add(*ps_ambient)
104 pyprctl.cap_ambient.add(*ps_ambient) 104 pyprctl.cap_ambient.add(*ps_ambient)
105 with open('/proc/self/uid_map', 'r') as uid_map: 105 with open('/proc/self/uid_map', 'r') as uid_map: