diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2019-03-14T12·50+0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2019-03-14T12·53+0100 |
commit | 53522cb6ac19bd1da35a657988231cce9387be9c (patch) | |
tree | 7ba80ef40ac8ad2c93c9216d08321642049b71e2 /src/libstore/store-api.hh | |
parent | a3f37d87eabcfb5dc581abcfa46e5e7d387dfa8c (diff) |
findRoots(): Add 'censor' parameter
This is less brittle than filtering paths after the fact in nix-daemon.
Diffstat (limited to 'src/libstore/store-api.hh')
-rw-r--r-- | src/libstore/store-api.hh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libstore/store-api.hh b/src/libstore/store-api.hh index bb16659765f4..40887b6aa3a0 100644 --- a/src/libstore/store-api.hh +++ b/src/libstore/store-api.hh @@ -484,8 +484,10 @@ public: /* Find the roots of the garbage collector. Each root is a pair (link, storepath) where `link' is the path of the symlink - outside of the Nix store that point to `storePath'. */ - virtual Roots findRoots() + outside of the Nix store that point to `storePath'. If + 'censor' is true, privacy-sensitive information about roots + found in /proc is censored. */ + virtual Roots findRoots(bool censor) { unsupported("findRoots"); } /* Perform a garbage collection. */ |