From 91617069b9903af303187acaf8e83bc7dece2c93 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 26 Sep 2012 21:03:37 +0100 Subject: run: Label tmp directory. There's not really any point just documenting that people should label the tmp directory, when we can just label it. So change the ./run script so it calls chcon. However it's not a failure if chcon doesn't work. If SELinux is not installed or is disabled, then labelling will fail. --- run.in | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'run.in') diff --git a/run.in b/run.in index cdcfa291..294beb2a 100755 --- a/run.in +++ b/run.in @@ -48,10 +48,9 @@ b=@abs_builddir@ # # We set it to a subdirectory ('tmp') so that we can label this # subdirectory to make libvirt + sVirt + SELinux enforcing work. -# -# chcon --reference=/tmp tmp export TMPDIR="$b/tmp" mkdir -p "$b/tmp" +chcon --reference=/tmp tmp 2>/dev/null ||: # Set local environment relative to this script. export LIBGUESTFS_PATH="$b/appliance" -- cgit