aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ali Polatel <alip@exherbo.org> 2012-10-17 17:19:25 +0300
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2013-07-17 14:27:36 +0100
commit4b30335a88fc889179d19da6b37de954f17c9e9e (patch)
tree423c8e1d7a35583560379833f25273c2722ff9b1
parent7969f3e50f6c6b89e91d6e7284e21e4fc5a15238 (diff)
downloadpaludis-4b30335a88fc889179d19da6b37de954f17c9e9e.tar.gz
paludis-4b30335a88fc889179d19da6b37de954f17c9e9e.tar.xz
sydbox: allow unix socket creation under $TMPDIR
-rwxr-xr-xpaludis/repositories/e/ebuild/ebuild.bash5
1 files changed, 5 insertions, 0 deletions
diff --git a/paludis/repositories/e/ebuild/ebuild.bash b/paludis/repositories/e/ebuild/ebuild.bash
index 9683844..e57f389 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}