diff options
author | 2012-10-17 17:19:25 +0300 | |
---|---|---|
committer | 2013-07-17 14:27:36 +0100 | |
commit | 4b30335a88fc889179d19da6b37de954f17c9e9e (patch) | |
tree | 423c8e1d7a35583560379833f25273c2722ff9b1 | |
parent | 7969f3e50f6c6b89e91d6e7284e21e4fc5a15238 (diff) | |
download | paludis-4b30335a88fc889179d19da6b37de954f17c9e9e.tar.gz paludis-4b30335a88fc889179d19da6b37de954f17c9e9e.tar.xz |
sydbox: allow unix socket creation under $TMPDIR
-rwxr-xr-x | paludis/repositories/e/ebuild/ebuild.bash | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/paludis/repositories/e/ebuild/ebuild.bash b/paludis/repositories/e/ebuild/ebuild.bash index 9683844e1..e57f38950 100755 --- a/paludis/repositories/e/ebuild/ebuild.bash +++ b/paludis/repositories/e/ebuild/ebuild.bash @@ -526,6 +526,11 @@ ebuild_load_em_up_dan() export SANDBOX_WRITE=${SANDBOX_WRITE}:${CCACHE_DIR} esandbox check 2>/dev/null && esandbox allow "${CCACHE_DIR}" fi + if [[ -n ${TMPDIR} ]] && esandbox check 2>/dev/null; then + local tmpdirc="$(canonicalise "${TMPDIR}")" + esandbox allow_net unix:"${tmpdirc}" unix-abstract:"${tmpdirc}" + unset tmpdirc + fi fi [[ -z ${CBUILD} ]] && export CBUILD=${CHOST} |