On 24/01/2026 06:53, Bruno Haible wrote:
On Android, in the Termux environment, I initially saw link errors.
After fixing these in Gnulib (commit fe762f82eac67c9af699c90e0eeeb07a1ba67dfd),
the coreutils build succeeds, but several unit tests report that they
get SKIPped because of lack of SELinux support.

The cause is the require_selinux_ function: It checks only if
/proc/filesystems lists an selinuxfs file system. But on Android,
/proc/filesystems is not readable to a normal user ("Permission denied").
Therefore an alternative way is needed, to detect that the system
has SELinux support: looking at the output of the 'mount' program.
The attached proposed patch does this, and the said unit tests then
PASS.

"make check" then shows 15 ERROR and 60 FAIL (the same number as without
the patch).
Cool.
I've updated require_selinux_ check, and updated to latest gnulib.

thanks!
Padraig

Reply via email to