[LTP] [PATCH] Disable io_uring fd in ioctl_pidfd01 for selinux

Andrea Cervesato andrea.cervesato@suse.com
Tue Jul 29 11:38:29 CEST 2025


On 7/29/25 10:47 AM, Petr Vorel wrote:
> Well, all tests (ioctl_pidfd01.c, this ioctl_pidfd01.c, mount08.c) are testing
> with TST_EXP_FAIL_ARR(), i.e. negative tests.  Wouldn't be better to just expect
> a different errno? At least this is what I suggested to mount08.c [1].

Probably that works only for specific SELinux configurations and not for 
all of them. We can't consider the test to always fail with EACCESS if 
SELinux is enabled.

Also, we are testing ioctl() syscall and not SELinux interaction with 
the faulty file descriptors: that would happen with any other test as well.

- Andrea



More information about the ltp mailing list