aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/derivations.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2022-03-31 16:06:40 +0200
committerEelco Dolstra <edolstra@gmail.com>2022-03-31 16:06:40 +0200
commite279fbb16a99896101006ec00277a5d9d50f5040 (patch)
tree483c69e96e48c1d608959012a8a95d9b73b05efa /src/libstore/derivations.hh
parent4e043c2f32af3d3d49c53a2d06746e2fd6967836 (diff)
needsNetworkAccess() -> isSandboxed()
Diffstat (limited to 'src/libstore/derivations.hh')
-rw-r--r--src/libstore/derivations.hh10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/libstore/derivations.hh b/src/libstore/derivations.hh
index 98e59b64e..489948c30 100644
--- a/src/libstore/derivations.hh
+++ b/src/libstore/derivations.hh
@@ -130,10 +130,12 @@ struct DerivationType : _DerivationTypeRaw {
non-CA derivations. */
bool isFixed() const;
- /* Whether the derivation needs to access the network. Note that
- whether or not we actually sandbox the derivation is controlled
- separately. Never true for non-CA derivations. */
- bool needsNetworkAccess() const;
+ /* Whether the derivation is fully sandboxed. If false, the
+ sandbox is opened up, e.g. the derivation has access to the
+ network. Note that whether or not we actually sandbox the
+ derivation is controlled separately. Always true for non-CA
+ derivations. */
+ bool isSandboxed() const;
/* Whether the derivation is expected to produce the same result
every time, and therefore it only needs to be built once. This