From b4e74d1ead7d0a7e5d5e502a58d70029673e2a77 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 17 Feb 2022 13:29:17 +0100 Subject: vidhar: ... --- hosts/vidhar/borg/copy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hosts') diff --git a/hosts/vidhar/borg/copy.py b/hosts/vidhar/borg/copy.py index 7a83100a..3ec520b5 100755 --- a/hosts/vidhar/borg/copy.py +++ b/hosts/vidhar/borg/copy.py @@ -88,7 +88,7 @@ def copy_archive(src_repo_path, dst_repo_path, entry): # print('unshare/chroot', file=stderr) unshare.unshare(unshare.CLONE_NEWUSER) unshare.unshare(unshare.CLONE_NEWNS) - pyprctl.cap_ambient_raise(pyprctl.SYS_ADMIN) + pyprctl.cap_ambient_raise(pyprctl.Cap.SYS_ADMIN) subprocess.run(['mount', '--make-rprivate', '/'], check=True) chroot = pathlib.Path(tmpdir) / 'chroot' upper = pathlib.Path(tmpdir) / 'upper' -- cgit v1.2.3