diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2007-01-29T15·51+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2007-01-29T15·51+0000 |
commit | b618fa6eb6aa4cc128286ab748bfb100fa46a888 (patch) | |
tree | cbc903a32f4b1fa2570904e4e4768839b2e64a1e /src/libstore/store-api.hh | |
parent | c558b1583c0e23bf4e19e916ef0ba223b61405a3 (diff) |
* computeStorePathForText: take the references into account when
computing the store path (NIX-77). This is an important security property in multi-user Nix stores. Note that this changes the store paths of derivations (since the derivation aterms are added using addTextToStore), but not most outputs (unless they use builtins.toFile).
Diffstat (limited to 'src/libstore/store-api.hh')
-rw-r--r-- | src/libstore/store-api.hh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstore/store-api.hh b/src/libstore/store-api.hh index d92b03df0621..361e7aaa1aee 100644 --- a/src/libstore/store-api.hh +++ b/src/libstore/store-api.hh @@ -215,7 +215,8 @@ std::pair<Path, Hash> computeStorePathForPath(const Path & srcPath, simply yield a different store path, so other users wouldn't be affected), but it has some backwards compatibility issues (the hashing scheme changes), so I'm not doing that for now. */ -Path computeStorePathForText(const string & suffix, const string & s); +Path computeStorePathForText(const string & suffix, const string & s, + const PathSet & references); /* Remove the temporary roots file for this process. Any temporary |