xfstests: mount xfs with a context when selinux is on

When selinux is on, we get tons of new xattrs, which messes
up all kinds of output.

The simplest way out of this, for now, seems to be to just mount
with a global context instead and skip writing the extra xattrs.

I've been using this internally on Fedora and RHEL for a while now.

Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Reviewed-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
Eric Sandeen
2010-02-19 09:33:45 -06:00
parent 7ff755f651
commit 3839d29973
2 changed files with 12 additions and 3 deletions
+2 -1
View File
@@ -45,7 +45,8 @@ _cleanup()
_scratch_filter()
{
sed -e "s#$SCRATCH_DEV#SCRATCH_DEV#" \
-e "s#$SCRATCH_MNT#SCRATCH_MNT#"
-e "s#$SCRATCH_MNT#SCRATCH_MNT#" \
-e "s#,context.*s0\"##"
}
_check_mount()