common/config: make SELinux protection conditional
authorGwendal Grignou <gwendal@chromium.org>
Mon, 6 Mar 2017 22:14:16 +0000 (14:14 -0800)
committerEryu Guan <eguan@redhat.com>
Tue, 7 Mar 2017 11:41:22 +0000 (19:41 +0800)
commitd8b1dc1d2db9be1d8bb1a64c6bc5022b9a86bd47
tree745d436b043164d098a442c641b7d79d1760e1f7
parentde86b28517076f30dbef77443512667c15b634cb
common/config: make SELinux protection conditional

When selinux utilities are present, xfstests add options to help
circumvent selinux protection. However, on Chrome OS, it leads to
the opposite effect, when it prevents mount to succeed.

BUG=chromium:669641
TEST=xfstest test ext4/001 completes where it use to display:
common/rc: could not mount /dev/loop29 on /usr/local/autotest/tmp/xfstests_TEST

Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
common/config