[LTP] [PATCH STAGING v4 10/16] fchroot07: test execve blocked by failfs root
Cyril Hrubis
chrubis@suse.cz
Tue Oct 13 17:44:13 CEST 2026
Hi!
> +static void run(void)
> +{
> + if (SAFE_FORK())
> + return;
> +
> + TST_EXP_PASS(tst_syscall(__NR_fchroot, FD_FAILFS_ROOT, 0),
> + "fchroot() with the FD_FAILFS_ROOT sentinel");
> +
> + if (!SAFE_FORK()) {
> + TST_EXP_FAIL(execl(child_path, CHILD_EXEC, NULL), EOPNOTSUPP,
> + "absolute exec blocked by the failfs root");
> + exit(0);
> + }
> +
> + SAFE_WAIT(NULL);
> + exit(0);
Again, no need to exit(0) here.
Otherwise:
Reviewed-by: Cyril Hrubis <chrubis@suse.cz>
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list