summaryrefslogtreecommitdiff
path: root/hosts/vidhar
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-02-17 14:14:31 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2022-02-17 14:14:31 +0100
commit93e1777707c03b3f4d7d42ee12d427222aa91191 (patch)
treec26ded708a8385bfad99cf11913c74530731472b /hosts/vidhar
parent884c1ddb26e9392aeaeefe02949f436b1d52aa1d (diff)
downloadnixos-93e1777707c03b3f4d7d42ee12d427222aa91191.tar
nixos-93e1777707c03b3f4d7d42ee12d427222aa91191.tar.gz
nixos-93e1777707c03b3f4d7d42ee12d427222aa91191.tar.bz2
nixos-93e1777707c03b3f4d7d42ee12d427222aa91191.tar.xz
nixos-93e1777707c03b3f4d7d42ee12d427222aa91191.zip
vidhar: ...
Diffstat (limited to 'hosts/vidhar')
-rwxr-xr-xhosts/vidhar/borg/copy.py1
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')