diff options
author | Puck Meerburg <puck@puckipedia.com> | 2024-03-06 23:26:40 +0000 |
---|---|---|
committer | Puck Meerburg <puck@puckipedia.com> | 2024-03-07 01:44:58 +0000 |
commit | 6f36a8834c1d7a2de548a943ec93a4ad02e27083 (patch) | |
tree | a814af53877c3cfa4a33098cf94edfda18e4d904 /src/nix/local.mk | |
parent | 89e99d94e4ae492db09c0ebc0c35e4890ef7db25 (diff) |
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
Diffstat (limited to 'src/nix/local.mk')
0 files changed, 0 insertions, 0 deletions