[Pkg-libvirt-commits] [libguestfs] 118/156: ./run: chcon the tmp directory in the builddir.
Hilko Bengen
bengen at moszumanska.debian.org
Sat Aug 30 08:26:12 UTC 2014
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to branch master
in repository libguestfs.
commit 5a45f10a407bfb233d25d6278778b6ec83057eee
Author: Richard W.M. Jones <rjones at redhat.com>
Date: Mon Aug 4 14:51:30 2014 +0100
./run: chcon the tmp directory in the builddir.
Not just some random tmp directory which happens to be in the
local directory.
(cherry picked from commit b6cb67d958f5f9ac96b885c8e792beca2d6cac18)
---
run.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/run.in b/run.in
index db29451..4ad106b 100755
--- a/run.in
+++ b/run.in
@@ -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 at ENABLE_APPLIANCE@" = "xyes" ]; then
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git
More information about the Pkg-libvirt-commits
mailing list