[LTP] [PATCH v2] mount08.c: Check EACCES error when test under selinux enabled in enforce mode
Petr Vorel
pvorel@suse.cz
Thu Jul 31 12:54:56 CEST 2025
Hi Andrea, Wei,
> We are not 100% sure that SELinux will be configured to block the access to
> mount. We should probably consider both of them only when SELinux is
> enabled, otherwise ENOENT only.
Good point. Lets' use TST_EXP_FAIL_ARR with ENOENT or ENOENT and EACCES.
Wei, please make a comment in source code, why EACCES is not enough for SELinux.
Thanks!
Kind regards,
Petr
> - Andrea
More information about the ltp
mailing list