From d0fbb7551f173e02b11b4964541ba7576848fc28 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Fri, 18 Feb 2022 12:52:56 +0100 Subject: vidhar: ... --- hosts/vidhar/borg/copy.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/hosts/vidhar/borg/copy.py b/hosts/vidhar/borg/copy.py index f3827740..e6f64c95 100755 --- a/hosts/vidhar/borg/copy.py +++ b/hosts/vidhar/borg/copy.py @@ -46,9 +46,13 @@ halo_args = { borg_pwd = getpwnam('borg') def as_borg(caps=set()): + print('as_borg', 'pre-caps', file=stderr) if caps: - for capset in [cap_permitted, cap_inheritable, cap_effective, cap_ambient]: - capset.add(*caps) + cap_permitted.add(*caps) + cap_inheritable.add(*caps) + cap_effective.add(*caps) + cap_ambient.add(*caps) + print('as_borg', 'post-caps', file=stderr) os.setgid(borg_pwd.pw_gid) os.setuid(borg_pwd.pw_uid) -- cgit v1.2.3