diff options
author | Jude Taylor <me@jude.bio> | 2015-11-16T13·29-0800 |
---|---|---|
committer | Jude Taylor <me@jude.bio> | 2015-11-20T00·06-0800 |
commit | b9b7bb18063d8315cd84424b7e3535b76d06cfc6 (patch) | |
tree | 28bc741aa93445a21a8f9c09d62dd835903194b3 /src | |
parent | 5deb7fbdfb9fd910be6be4bfcd139ebdac435242 (diff) |
re-fix permissions for GHC
Diffstat (limited to 'src')
-rw-r--r-- | src/libstore/build.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc index 2b148391fe9e..9614bb1c3eb2 100644 --- a/src/libstore/build.cc +++ b/src/libstore/build.cc @@ -2503,8 +2503,11 @@ void DerivationGoal::runChild() } sandboxProfile += ")\n"; - /* Our inputs (transitive dependencies and any impurities computed above) */ - sandboxProfile += "(allow file-read* process-exec\n"; + /* Our inputs (transitive dependencies and any impurities computed above) + + without file-write* allowed, access() incorrectly returns EPERM + */ + sandboxProfile += "(allow file-read* file-write* process-exec\n"; for (auto & i : dirsInChroot) { if (i.first != i.second) throw SysError(format("can't map '%1%' to '%2%': mismatched impure paths not supported on darwin")); |