On Fri, Mar 10, 2017 at 08:57:36PM -0500, Theodore Ts'o wrote: > On Fri, Mar 10, 2017 at 04:53:06PM -0800, Eric Biggers wrote: > > From: Eric Biggers <ebiggers@xxxxxxxxxx> > > > > xfstests is supposed to disable the creation of SELinux xattrs because > > this interferes with some tests (e.g. generic/062 and generic/377), but > > this was not working on Android. For the android-xfstests portion of > > the fix, make the following changes: > > > > 1. To stop the mount program from stripping the 'context' mount option, > > mount selinuxfs and create an empty /etc/selinux/config. This makes the > > is_selinux_enabled() function from libselinux return true. > > > > 2. To stop xfstests from thinking that SELinux is disabled, link > > /usr/sbin/selinuxenabled to /bin/true. (Note: getting the real version > > of selinuxenabled by adding selinux-utils to the chroot tarball would > > also work, though no other programs from it are needed yet, and some > > don't work in the chroot environment yet.) > > > > In combination with the xfstests patch to stop hard-coding SELinux > > contexts in xfstests, this fixes the failing tests. > > Thanks! > > I think you're missing the list of tests this fixes here? > > - Ted They're mentioned at the top: generic/062 and generic/377. There may be others among tests not being run, but those were the ones I observed were fixed. Eric -- To unsubscribe from this list: send the line "unsubscribe fstests" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html