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-09-02 09:10:12 +0100
commitd53e7989e9fb880c8316120da0650754fa647e44 (patch)
tree0006cec5e5d35a6a02df3736f7d1c248134f278c
parenteafa5f6c6077a1b791d48bcf4210de9333dc337c (diff)
downloadpaludis-d53e7989e9fb880c8316120da0650754fa647e44.tar.gz
paludis-d53e7989e9fb880c8316120da0650754fa647e44.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 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}