diff options
Diffstat (limited to 'hosts/vidhar')
-rwxr-xr-x | hosts/vidhar/borg/copy.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hosts/vidhar/borg/copy.py b/hosts/vidhar/borg/copy.py index 9b263288..9ced3a57 100755 --- a/hosts/vidhar/borg/copy.py +++ b/hosts/vidhar/borg/copy.py | |||
@@ -103,6 +103,7 @@ def copy_archive(src_repo_path, dst_repo_path, entry): | |||
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_permitted.sys_admin = True | 105 | pyprctl.cap_permitted.sys_admin = True |
106 | pyprctl.cap_inheritable.sys_admin = True | ||
106 | pyprctl.cap_ambient.sys_admin = True | 107 | pyprctl.cap_ambient.sys_admin = True |
107 | with open('/proc/self/uid_map', 'w') as uid_map: | 108 | with open('/proc/self/uid_map', 'w') as uid_map: |
108 | uid_map.write(f'{uid} {uid} 1') | 109 | uid_map.write(f'{uid} {uid} 1') |