lix/tests/secure-drv-outputs.nix
Eelco Dolstra d2bfe1b071 * Added a test that make sure that users cannot register
specially-crafted derivations that produce output paths belonging to
  other derivations.  This could be used to inject malware into the
  store.
2011-07-20 12:15:40 +00:00

24 lines
332 B
Nix

with import ./config.nix;
{
good = mkDerivation {
name = "good";
builder = builtins.toFile "builder"
''
mkdir $out
touch $out/good
'';
};
bad = mkDerivation {
name = "good";
builder = builtins.toFile "builder"
''
mkdir $out
touch $out/bad
'';
};
}