tests: recognize SELinux support on Android

* init.cfg (require_selinux_): Also try to see if 'mount' lists the
selinuxfs.
This commit is contained in:
Bruno Haible 2026-01-24 07:42:33 +01:00 committed by Pádraig Brady
parent acf0acd0c9
commit f748dc7133

View File

@ -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,