Revert /nix/store permission back to 01775
This broke NixOS VM tests. Mostly reverts27b7b94923
,5ce50cd99e
,afa433e58c
.
This commit is contained in:
parent
afa433e58c
commit
1711679ea5
|
@ -1895,7 +1895,7 @@ void DerivationGoal::startBuilder()
|
|||
build user. */
|
||||
Path chrootStoreDir = chrootRootDir + settings.nixStore;
|
||||
createDirs(chrootStoreDir);
|
||||
chmod_(chrootStoreDir, 0735);
|
||||
chmod_(chrootStoreDir, 01775);
|
||||
|
||||
if (chown(chrootStoreDir.c_str(), 0, buildUser.getGID()) == -1)
|
||||
throw SysError(format("cannot change ownership of ‘%1%’") % chrootStoreDir);
|
||||
|
|
|
@ -256,7 +256,7 @@ LocalStore::LocalStore(bool reserveSpace)
|
|||
if (chmod(perUserDir.c_str(), 01777) == -1)
|
||||
throw SysError(format("could not set permissions on ‘%1%’ to 1777") % perUserDir);
|
||||
|
||||
mode_t perm = 01735;
|
||||
mode_t perm = 01775;
|
||||
|
||||
struct group * gr = getgrnam(settings.buildUsersGroup.c_str());
|
||||
if (!gr)
|
||||
|
|
Loading…
Reference in a new issue