[LTP] [PATCH STAGING v4 13/16] fchroot10: test failfs entry without no_new_privs
Cyril Hrubis
chrubis@suse.cz
Wed Oct 14 14:11:15 CEST 2026
Hi!
> +static void run(void)
> +{
> + if (SAFE_FORK())
> + return;
> +
> + SAFE_SETRESUID(ltpuser->pw_uid, ltpuser->pw_uid,
> + ltpuser->pw_uid);
> +
> + TST_EXP_FAIL(tst_syscall(__NR_fchroot, FD_FAILFS_ROOT, 0),
> + EPERM, "unprivileged fchroot() without no_new_privs");
> +
> + exit(0);
Here as well, no need for the exit(0)
Otherwise:
Reviewed-by: Cyril Hrubis <chrubis@suse.cz>
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list