1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2024-09-21 11:30:30 -04:00

Reduce # of UIDs per build to 65536

2^18 was overkill. The idea was to enable multiple containers to run
inside a build. However, those containers can use the same UID range -
we don't really care about perfect isolation between containers inside
a build.
This commit is contained in:
Eelco Dolstra 2020-05-15 00:32:44 +02:00
parent f5fa3de759
commit ca2f64bcda

View file

@ -149,7 +149,7 @@ public:
"The Unix group that contains the build users."}; "The Unix group that contains the build users."};
#if __linux__ #if __linux__
const uint32_t idsPerBuild = 1 << 18; const uint32_t idsPerBuild = 1 << 16;
Setting<uint32_t> startId{this, 872415232, "start-id", Setting<uint32_t> startId{this, 872415232, "start-id",
"The first UID and GID to use for dynamic ID allocation. (0 means disable.)"}; "The first UID and GID to use for dynamic ID allocation. (0 means disable.)"};