diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2022-02-17 16:53:21 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2022-02-17 16:53:21 +0100 |
commit | 4d6e8a8290e79bfa8c24d4e477e03bbb00a3eacf (patch) | |
tree | 03349ac6231d4fc91cdea1785d8127debd095584 /hosts/vidhar/borg | |
parent | b72ae2fe4e822e4af562f9a8b704371179d20405 (diff) | |
download | nixos-4d6e8a8290e79bfa8c24d4e477e03bbb00a3eacf.tar nixos-4d6e8a8290e79bfa8c24d4e477e03bbb00a3eacf.tar.gz nixos-4d6e8a8290e79bfa8c24d4e477e03bbb00a3eacf.tar.bz2 nixos-4d6e8a8290e79bfa8c24d4e477e03bbb00a3eacf.tar.xz nixos-4d6e8a8290e79bfa8c24d4e477e03bbb00a3eacf.zip |
vidhar: ...
Diffstat (limited to 'hosts/vidhar/borg')
-rwxr-xr-x | hosts/vidhar/borg/copy.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/hosts/vidhar/borg/copy.py b/hosts/vidhar/borg/copy.py index 5617635b..8cfcbd56 100755 --- a/hosts/vidhar/borg/copy.py +++ b/hosts/vidhar/borg/copy.py | |||
@@ -102,12 +102,12 @@ def copy_archive(src_repo_path, dst_repo_path, entry): | |||
102 | pyprctl.cap_effective.add(*(ps_effective | ps_ambient)) | 102 | pyprctl.cap_effective.add(*(ps_effective | ps_ambient)) |
103 | pyprctl.cap_inheritable.add(*ps_ambient) | 103 | pyprctl.cap_inheritable.add(*ps_ambient) |
104 | pyprctl.cap_ambient.add(*ps_ambient) | 104 | pyprctl.cap_ambient.add(*ps_ambient) |
105 | # with open('/proc/self/setgroups', 'w') as setgroups: | 105 | with open('/proc/self/setgroups', 'w') as setgroups: |
106 | # setgroups.write('deny') | 106 | setgroups.write('deny') |
107 | # with open('/proc/self/uid_map', 'w') as uid_map: | 107 | with open('/proc/self/uid_map', 'w') as uid_map: |
108 | # uid_map.write(f'0 {uid} 1') | 108 | uid_map.write(f'0 {uid} 1') |
109 | # with open('/proc/self/gid_map', 'w') as gid_map: | 109 | with open('/proc/self/gid_map', 'w') as gid_map: |
110 | # gid_map.write(f'0 {gid} 1') | 110 | gid_map.write(f'0 {gid} 1') |
111 | subprocess.run(['mount', '--make-rprivate', '/'], check=True) | 111 | subprocess.run(['mount', '--make-rprivate', '/'], check=True) |
112 | chroot = pathlib.Path(tmpdir) / 'chroot' | 112 | chroot = pathlib.Path(tmpdir) / 'chroot' |
113 | upper = pathlib.Path(tmpdir) / 'upper' | 113 | upper = pathlib.Path(tmpdir) / 'upper' |