[LTP] [PATCH] Disable io_uring fd in ioctl_pidfd01 for selinux
Wei Gao
wegao@suse.com
Wed Jul 30 12:40:04 CEST 2025
On Tue, Jul 29, 2025 at 06:48:15PM +0200, Andrea Cervesato wrote:
> On 7/29/25 6:17 PM, Cyril Hrubis wrote:
> > Maybe it would make sense to inject additional errno EACESS to the
> > TST_EXP_FAIL() automatically if we detect that selinux is enforcing.
>
> This is potentially true for every LTP test, because SELinux can be
> customized in many ways. Technically, we should not take care about SELinux
> inside tests if they fail because of it and to threat failures according to
> the LSM configuration, considering that as a known issue or a soft failure.
>
> At least, this was my first idea. This patch was introduced after talking to
> other devs and I'm also not 100% sure about it.
>
> - Andrea
>
Just FYI discussion on similar case for fanotify14 handle selinux
https://lists.linux.it/pipermail/ltp/2024-March/037564.html
More information about the ltp
mailing list