lix/src
puck 6f36a8834c Copy the output of fixed-output derivations before registering them
It is possible to exfiltrate a file descriptor out of the build sandbox
of FODs, and use it to modify the store path after it has been
registered. To avoid that issue, don't register the output of the build,
but a copy of it (that will be free of any leaked file descriptor).

Test that we can't leverage abstract unix domain sockets to leak file
descriptors out of the sandbox and modify the path after it has been
registered.

(cherry picked from commit 2dadfeb690e7f4b8f97298e29791d202fdba5ca6)
(tests cherry picked from commit c854ae5b3078ac5d99fa75fe148005044809e18c)

Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
Co-authored-by: Theophane Hufschmitt <theophane.hufschmitt@tweag.io>
Co-authored-by: Tom Bereknyei <tomberek@gmail.com>

Change-Id: I87cd58f1c0a4f7b7a610d354206b33301e47b1a4
2024-03-07 01:44:58 +00:00
..
build-remote Merge pull request #9838 from obsidiansystems/systemTypes-set 2024-03-04 08:39:24 +01:00
libcmd Merge pull request #9634 from 9999years/combine-abstract-pos-and-pos 2024-03-05 23:46:18 -07:00
libexpr Merge pull request #9634 from 9999years/combine-abstract-pos-and-pos 2024-03-05 23:46:18 -07:00
libfetchers Merge pull request #9634 from 9999years/combine-abstract-pos-and-pos 2024-03-05 23:46:18 -07:00
libmain Merge pull request #9465 from obsidiansystems/build-dir 2024-03-04 07:11:25 +01:00
libstore Copy the output of fixed-output derivations before registering them 2024-03-07 01:44:58 +00:00
libutil Copy the output of fixed-output derivations before registering them 2024-03-07 01:44:58 +00:00
nix Merge pull request #10067 from ramboman/fix-proxy-nix 2024-03-04 09:25:17 +01:00
nix-build Merge pull request #9582 from pennae/misc-opts 2024-03-04 07:32:31 +01:00
nix-channel Merge pull request #10054 from syvb/channel-unpack-count 2024-03-04 09:25:17 +01:00
nix-collect-garbage Clean up a few things related to profiles (#8526) 2023-06-19 04:04:59 +00:00
nix-copy-closure Merge pull request #9277 from keszybz/file-permissions 2024-03-04 05:26:17 +01:00
nix-env Merge pull request #9582 from pennae/misc-opts 2024-03-04 07:32:31 +01:00
nix-instantiate Merge pull request #9582 from pennae/misc-opts 2024-03-04 07:32:31 +01:00
nix-store Merge pull request #6223 from obsidiansystems/worker-proto-with-version 2024-03-04 04:59:31 +01:00
resolve-system-dependencies Remove FormatOrString and remaining uses of format() 2023-03-02 15:57:54 +01:00
toml11 Replace cpptoml with toml11 2021-12-17 22:03:33 +01:00