./run: chcon the tmp directory in the builddir.

Not just some random tmp directory which happens to be in the
local directory.
This commit is contained in:
Richard W.M. Jones
2014-08-04 14:51:30 +01:00
parent e1c508c29f
commit b6cb67d958

2
run.in
View File

@@ -60,7 +60,7 @@ export T
export LIBGUESTFS_TMPDIR="$b/tmp"
export LIBGUESTFS_CACHEDIR="$b/tmp"
mkdir -p "$b/tmp"
chcon --reference=/tmp tmp 2>/dev/null ||:
chcon --reference=/tmp "$b/tmp" 2>/dev/null ||:
# Only set path if the appliance was enabled.
if [ "x@ENABLE_APPLIANCE@" = "xyes" ]; then