aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/lock.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2023-01-05 04:58:55 -0800
committerEelco Dolstra <edolstra@gmail.com>2023-01-05 04:58:55 -0800
commit4e84b532ed5317ec836c54689c73a1fddab0c892 (patch)
tree90b2cd90e6bc101a13ba4203f92ce6aecf9b1e68 /src/libstore/lock.hh
parentd644b456159b0335039666f6620a9f3d8129a83a (diff)
On macOS with auto-uid-allocation and sandboxing, use the correct gid
macOS doesn't have user namespacing, so the gid of the builder needs to be nixbld. The logic got "has sandboxing enabled" confused with "has user namespaces". Fixes #7529.
Diffstat (limited to 'src/libstore/lock.hh')
-rw-r--r--src/libstore/lock.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/lock.hh b/src/libstore/lock.hh
index 49ad86de7..7f1934510 100644
--- a/src/libstore/lock.hh
+++ b/src/libstore/lock.hh
@@ -31,7 +31,7 @@ struct UserLock
/* Acquire a user lock for a UID range of size `nrIds`. Note that this
may return nullptr if no user is available. */
-std::unique_ptr<UserLock> acquireUserLock(uid_t nrIds, bool useChroot);
+std::unique_ptr<UserLock> acquireUserLock(uid_t nrIds, bool useUserNamespace);
bool useBuildUsers();