[LTP] [PATCH v1] mount08.c: SKIP test if selinux is running

Cyril Hrubis chrubis@suse.cz
Mon Jul 28 12:04:09 CEST 2025


The commit is missing why this has to be done. Please be more verbose
and explain the reasons in the commit message.

> Signed-off-by: Wei Gao <wegao@suse.com>
> ---
>  testcases/kernel/syscalls/mount/mount08.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/testcases/kernel/syscalls/mount/mount08.c b/testcases/kernel/syscalls/mount/mount08.c
> index e2824ac55..1f97de182 100644
> --- a/testcases/kernel/syscalls/mount/mount08.c
> +++ b/testcases/kernel/syscalls/mount/mount08.c
> @@ -41,6 +41,9 @@ static void run(void)
>  
>  static void setup(void)
>  {
> +	if (tst_selinux_enforcing())
> +		tst_brk(TCONF, "SKIP test since selinux is running");
> +
>  	SAFE_TOUCH(FOO, 0777, NULL);
>  	SAFE_TOUCH(BAR, 0777, NULL);
>  }
> -- 
> 2.49.0
> 
> 
> -- 
> Mailing list info: https://lists.linux.it/listinfo/ltp

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list