[LTP] [PATCH STAGING v4 08/16] fchroot05: test failfs root can not be referenced
Cyril Hrubis
chrubis@suse.cz
Mon Oct 12 13:14:36 CEST 2026
Hi!
> + len = readlinkat(procfd, "self/root", buf, sizeof(buf) - 1);
> + if (len < 0) {
> + tst_res(TFAIL | TTERRNO, "readlinkat() of /proc/self/root");
> + } else {
> + buf[len] = '\0';
> + TST_EXP_EQ_STR(buf, "failfs:/");
> + }
> +
> + exit(0);
Here as well.
Otherwise:
Reviewed-by: Cyril Hrubis <chrubis@suse.cz>
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list