diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2022-02-17 16:04:24 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2022-02-17 16:04:24 +0100 |
commit | 1380ff3484b8b0992d280f50abadcd65b89ce11f (patch) | |
tree | 6212f81e8408b10996a7592b6fc19548794649c3 /hosts | |
parent | 4b6161dc82afee61110d90988e576bf27caaf66d (diff) | |
download | nixos-1380ff3484b8b0992d280f50abadcd65b89ce11f.tar nixos-1380ff3484b8b0992d280f50abadcd65b89ce11f.tar.gz nixos-1380ff3484b8b0992d280f50abadcd65b89ce11f.tar.bz2 nixos-1380ff3484b8b0992d280f50abadcd65b89ce11f.tar.xz nixos-1380ff3484b8b0992d280f50abadcd65b89ce11f.zip |
vidhar: ...
Diffstat (limited to 'hosts')
-rwxr-xr-x | hosts/vidhar/borg/copy.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hosts/vidhar/borg/copy.py b/hosts/vidhar/borg/copy.py index f5fc9cd9..022bb27f 100755 --- a/hosts/vidhar/borg/copy.py +++ b/hosts/vidhar/borg/copy.py | |||
@@ -94,7 +94,7 @@ def copy_archive(src_repo_path, dst_repo_path, entry): | |||
94 | child = os.fork() | 94 | child = os.fork() |
95 | if child == 0: | 95 | if child == 0: |
96 | # print('unshare/chroot', file=stderr) | 96 | # print('unshare/chroot', file=stderr) |
97 | uid, gid = os.getuid(), os.getgid() | 97 | uid, gid = os.geteuid(), os.getegid() |
98 | unshare.unshare(unshare.CLONE_NEWNS | unshare.CLONE_NEWUSER) | 98 | unshare.unshare(unshare.CLONE_NEWNS | unshare.CLONE_NEWUSER) |
99 | ps_effective = {} # {pyprctl.Cap.SETUID, pyprctl.Cap.SETGID} | 99 | ps_effective = {} # {pyprctl.Cap.SETUID, pyprctl.Cap.SETGID} |
100 | ps_ambient = {pyprctl.Cap.SYS_ADMIN} | 100 | ps_ambient = {pyprctl.Cap.SYS_ADMIN} |