]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: recognize SELinux support on Android
authorBruno Haible <bruno@clisp.org>
Sat, 24 Jan 2026 06:42:33 +0000 (07:42 +0100)
committerPádraig Brady <P@draigBrady.com>
Sat, 24 Jan 2026 13:01:57 +0000 (13:01 +0000)
* init.cfg (require_selinux_): Also try to see if 'mount' lists the
selinuxfs.

init.cfg

index 9224c5df0fdb29571416a3b7fcd67f74ad2ecd44..ae02adcfd7183a90dc2a7829394c7226a78f80ce 100644 (file)
--- a/init.cfg
+++ b/init.cfg
@@ -112,6 +112,7 @@ require_selinux_()
   # When in a chroot of an SELinux-enabled system, but with a mock-simulated
   # SELinux-*disabled* system, recognize that SELinux is disabled system wide:
   grep 'selinuxfs$' /proc/filesystems > /dev/null \
+    || { mount | grep ' type selinuxfs ' > /dev/null; } \
     || skip_ "this system lacks SELinux support"
 
   # Independent of whether SELinux is enabled system-wide,