lix/src/libstore
Eelco Dolstra 836573a9a2 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.
2020-07-06 13:50:33 +02:00
..
builtins hashed-mirrors: Use parsed derivation output rather than reconstructing it 2020-06-22 15:17:20 +00:00
binary-cache-store.cc Revert the enum struct change 2020-06-18 22:11:26 +00:00
binary-cache-store.hh Remove addToStore variant as requested by FIXME 2020-05-29 17:02:32 -04:00
build.cc Dynamically allocate UIDs 2020-07-06 13:50:33 +02:00
builtins.hh buildenv: Eliminate global variables, other cleanup 2020-03-24 14:06:47 +01:00
content-address.cc More designated initializers 2020-06-19 17:42:56 +00:00
content-address.hh Merge remote-tracking branch 'me/no-stringly-typed-derivation-output' into validPathInfo-ca-proper-datatype 2020-06-19 15:26:59 +00:00
crypto.cc binary-cache-public-keys -> trusted-public-keys 2017-11-20 17:32:34 +01:00
crypto.hh
daemon.cc Merge branch 'master' into add-trace 2020-07-03 07:57:36 -06:00
daemon.hh Recursive Nix support 2019-11-06 00:52:38 +01:00
derivations.cc Fix empty std::optional dereference in writeDerivation() 2020-06-25 15:50:30 +02:00
derivations.hh Merge remote-tracking branch 'me/no-stringly-typed-derivation-output' into validPathInfo-ca-proper-datatype 2020-06-19 15:26:59 +00:00
export-import.cc Revert the enum struct change 2020-06-18 22:11:26 +00:00
filetransfer.cc Revert the enum struct change 2020-06-18 22:11:26 +00:00
filetransfer.hh fixes to merged code 2020-05-11 15:52:15 -06:00
fs-accessor.hh Shut up some warnings 2019-09-22 21:57:05 +02:00
gc.cc Revert the enum struct change 2020-06-18 22:11:26 +00:00
globals.cc Shorten the path to the test root 2020-07-03 09:20:01 +02:00
globals.hh Dynamically allocate UIDs 2020-07-06 13:50:33 +02:00
http-binary-cache-store.cc datatransfer.{cc,hh} -> filetransfer.{cc,hh} 2020-04-08 22:26:57 +02:00
legacy-ssh-store.cc Merge branch 'validPathInfo-temp' into validPathInfo-ca-proper-datatype 2020-06-18 23:01:58 +00:00
local-binary-cache-store.cc remove 'format' from Error constructor calls 2020-04-21 17:07:07 -06:00
local-fs-store.cc Remove StorePath::clone() and related functions 2020-06-16 22:20:18 +02:00
local-store.cc Add a way to get all the outputs of a derivation with their label 2020-06-24 20:38:40 +02:00
local-store.hh Add a way to get all the outputs of a derivation with their label 2020-06-24 20:38:40 +02:00
local.mk StorePath: Rewrite in C++ 2020-06-16 14:28:41 +02:00
machines.cc getMachines(): Cache result 2019-04-01 21:09:35 +02:00
machines.hh Replace $NIX_REMOTE_SYSTEMS with an option "builder-files" 2017-05-02 15:46:09 +02:00
misc.cc Revert the enum struct change 2020-06-18 22:11:26 +00:00
names.cc Move names.{cc,hh} to libstore 2020-06-11 15:42:18 +02:00
names.hh Move names.{cc,hh} to libstore 2020-06-11 15:42:18 +02:00
nar-accessor.cc remove 'format' from Error constructor calls 2020-04-21 17:07:07 -06:00
nar-accessor.hh Fix build on gcc 7 2017-12-16 00:49:31 +01:00
nar-info-disk-cache.cc Merge branch 'validPathInfo-temp' into validPathInfo-ca-proper-datatype 2020-06-18 23:01:58 +00:00
nar-info-disk-cache.hh Misc changes from the flakes branch 2020-03-24 14:34:47 +01:00
nar-info.cc Merge branch 'validPathInfo-temp' into validPathInfo-ca-proper-datatype 2020-06-18 23:01:58 +00:00
nar-info.hh Make the Store API more type-safe 2019-12-10 22:06:05 +01:00
nix-store.pc.in pkg-config files: Use c++17 2019-03-14 14:11:12 +01:00
optimise-store.cc Revert the enum struct change 2020-06-18 22:11:26 +00:00
parsed-derivations.cc Reserve the __contentAddressed derivation parameter 2020-06-17 15:41:17 +02:00
parsed-derivations.hh Merge branch 'validPathInfo-temp' into validPathInfo-ca-proper-datatype 2020-06-18 23:01:58 +00:00
path.cc Revert the enum struct change 2020-06-18 22:11:26 +00:00
path.hh Add a way to get all the outputs of a derivation with their label 2020-06-24 20:38:40 +02:00
pathlocks.cc convert some printError calls to logError 2020-05-03 08:01:25 -06:00
pathlocks.hh Use BSD instead of POSIX file locks 2019-08-02 18:39:16 +02:00
profiles.cc remove 'format' from Error constructor calls 2020-04-21 17:07:07 -06:00
profiles.hh Misc changes from the flakes branch 2020-03-24 14:34:47 +01:00
references.cc Revert the enum struct change 2020-06-18 22:11:26 +00:00
references.hh Allow content-addressable paths to have references 2019-10-21 17:47:24 +02:00
remote-fs-accessor.cc StorePath: Rewrite in C++ 2020-06-16 14:28:41 +02:00
remote-fs-accessor.hh Provide random access to cached NARs 2017-12-07 01:07:07 +01:00
remote-store.cc Merge branch 'master' into add-trace 2020-07-03 07:57:36 -06:00
remote-store.hh Add a way to get all the outputs of a derivation with their label 2020-06-24 20:38:40 +02:00
s3-binary-cache-store.cc Revert the enum struct change 2020-06-18 22:11:26 +00:00
s3-binary-cache-store.hh
s3.hh DataTransfer -> FileTransfer 2020-04-08 22:26:57 +02:00
sandbox-defaults.sb sandbox: fix /bin/sh on catalina 2020-03-20 22:12:30 +01:00
sandbox-minimal.sb Always use the Darwin sandbox 2017-06-06 18:44:49 +02:00
sandbox-network.sb OS X sandbox: Improve builtin sandbox profile 2017-05-31 17:25:51 +02:00
schema.sql
serve-protocol.hh Make adding paths via nix-store --serve run in constant memory 2018-08-03 21:21:16 +02:00
sqlite.cc Get rid of explicit ErrorInfo constructors 2020-06-15 14:06:58 +02:00
sqlite.hh formatting and a few minor changes 2020-05-13 15:56:39 -06:00
ssh-store.cc Fix segfault in gcc on i686-linux 2020-02-07 13:01:48 +01:00
ssh.cc Revert the enum struct change 2020-06-18 22:11:26 +00:00
ssh.hh SSHMaster: Bypass SSH when connecting to localhost 2018-08-03 21:20:38 +02:00
store-api.cc Add a way to get all the outputs of a derivation with their label 2020-06-24 20:38:40 +02:00
store-api.hh Add a way to get all the outputs of a derivation with their label 2020-06-24 20:38:40 +02:00
worker-protocol.hh Add a way to get all the outputs of a derivation with their label 2020-06-24 20:38:40 +02:00