diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2012-09-25 12:15:19 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-09-25 12:16:25 +0100 |
commit | 7fc838cca334ccf3d388c5598ff7fae88dbe4513 (patch) | |
tree | e5f2c5bde9c7360da7032a6793889ea363f49791 /tests | |
parent | b3bf53714b4e783fb7c7565a6be050dece0d3d1a (diff) | |
download | libguestfs-7fc838cca334ccf3d388c5598ff7fae88dbe4513.tar.gz libguestfs-7fc838cca334ccf3d388c5598ff7fae88dbe4513.tar.xz libguestfs-7fc838cca334ccf3d388c5598ff7fae88dbe4513.zip |
test-launch-race: Add SELinux label to $TMPDIR.
This is a temporary workaround for
https://bugzilla.redhat.com/show_bug.cgi?id=860235
which can be removed once this bug is fixed.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/protocol/test-launch-race.pl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/protocol/test-launch-race.pl b/tests/protocol/test-launch-race.pl index f933bfeb..7e1330be 100755 --- a/tests/protocol/test-launch-race.pl +++ b/tests/protocol/test-launch-race.pl @@ -32,6 +32,11 @@ exit 77 if $ENV{SKIP_TEST_LAUNCH_RACE_PL}; my $tmpdir = tempdir (CLEANUP => 1); $ENV{TMPDIR} = $tmpdir; +# Temporary workaround for RHBZ#860235 which can be removed +# once that bug is fixed. +system ("chcon system_u:object_r:tmp_t:s0 $tmpdir") == 0 + or warn "chcon: $tmpdir: $!"; + my $pid = fork(); die ("fork failed: $!") if ($pid < 0); |