diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2017-10-31 12:22:29 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2020-07-06 13:50:33 +0200 |
commit | 836573a9a2d38935e254702826d250ea39824a1b (patch) | |
tree | 520d1f541ff2dfdab9a245aea6c1a6dff0bf6533 /src/libstore/filetransfer.cc | |
parent | 14227aeb327798a1446ddde59fc561c3d2e6b7a8 (diff) |
Dynamically allocate UIDs
Rather than rely on a nixbld group, we now allocate UIDs/GIDs
dynamically starting at a configurable ID (872415232 by default).
Also, we allocate 2^18 UIDs and GIDs per build, and run the build as
root in its UID namespace. (This should not be the default since it
breaks some builds. We probably should enable this conditional on a
requiredSystemFeature.) The goal is to be able to run (NixOS)
containers in a build. However, this will also require some cgroup
initialisation.
The 2^18 UIDs/GIDs is intended to provide enough ID space to run
multiple containers per build, e.g. for distributed NixOS tests.
Diffstat (limited to 'src/libstore/filetransfer.cc')
0 files changed, 0 insertions, 0 deletions