[LTP] [PATCH v2 4/4] Add error coverage for landlock network support
Cyril Hrubis
chrubis@suse.cz
Tue Nov 5 18:45:33 CET 2024
Hi!
> > ruleset_fd = TST_EXP_FD_SILENT(tst_syscall(__NR_landlock_create_ruleset,
> > - ruleset_attr, sizeof(struct tst_landlock_ruleset_attr_abi1), 0));
> > + ruleset_attr, sizeof(struct tst_landlock_ruleset_attr_abi4), 0));
> ^
> This should be abi_current otherwise we
> will fail on v1 only system.
^
Not exactly right either.
We have to pass:
MIN(abi, sizeof(struct tst_landlock_ruleset_attr_abi4))
To make sure that we enable either v1 or v4.
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list