From 93e1777707c03b3f4d7d42ee12d427222aa91191 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 17 Feb 2022 14:14:31 +0100 Subject: vidhar: ... --- hosts/vidhar/borg/copy.py | 1 + 1 file changed, 1 insertion(+) (limited to 'hosts/vidhar') 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): with open('/proc/self/gid_map', 'w') as gid_map: gid_map.write(f'0 {gid} 1') pyprctl.cap_permitted.sys_admin = True + pyprctl.cap_inheritable.sys_admin = True pyprctl.cap_ambient.sys_admin = True with open('/proc/self/uid_map', 'w') as uid_map: uid_map.write(f'{uid} {uid} 1') -- cgit v1.2.3