summaryrefslogtreecommitdiff
path: root/hosts/vidhar/borg/copy.py
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/vidhar/borg/copy.py')
-rwxr-xr-xhosts/vidhar/borg/copy.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/hosts/vidhar/borg/copy.py b/hosts/vidhar/borg/copy.py
index 9dac86ae..9b263288 100755
--- a/hosts/vidhar/borg/copy.py
+++ b/hosts/vidhar/borg/copy.py
@@ -102,7 +102,8 @@ def copy_archive(src_repo_path, dst_repo_path, entry):
102 uid_map.write(f'0 {uid} 1') 102 uid_map.write(f'0 {uid} 1')
103 with open('/proc/self/gid_map', 'w') as gid_map: 103 with open('/proc/self/gid_map', 'w') as gid_map:
104 gid_map.write(f'0 {gid} 1') 104 gid_map.write(f'0 {gid} 1')
105 pyprctl.cap_ambient_raise(pyprctl.Cap.SYS_ADMIN) 105 pyprctl.cap_permitted.sys_admin = True
106 pyprctl.cap_ambient.sys_admin = True
106 with open('/proc/self/uid_map', 'w') as uid_map: 107 with open('/proc/self/uid_map', 'w') as uid_map:
107 uid_map.write(f'{uid} {uid} 1') 108 uid_map.write(f'{uid} {uid} 1')
108 with open('/proc/self/gid_map', 'w') as gid_map: 109 with open('/proc/self/gid_map', 'w') as gid_map: