[LTP] [PATCH v3 05/11] Add landlock01 test
Petr Vorel
pvorel@suse.cz
Fri Jul 12 09:07:57 CEST 2024
Hi Li, Andrea,
> Hi Petr,
> On Fri, Jul 12, 2024 at 4:40 AM Petr Vorel <pvorel@suse.cz> wrote:
> > Hi Andrea,
> > again, LGTM, 2 things:
> > First, this fails at least on various kernel versions (tested: Tumbleweed
> > 6.10.0-rc7-3.g92abc10-default, and SLE15-SP4 5.14.21 with lsm=landlock and
> > Debian 6.6.15-amd64):
> > landlock01.c:49: TFAIL: Size is too small expected EINVAL: ENOMSG (42)
> > Is it a kernel bug or a test bug?
> You probably need to check the `/usr/include/linux/landlock.h` header file
> exist,
> and to see if 'struct landlock_ruleset_attr' contains the new field
> 'handled_access_net'.
> If not exist or does not contain that, the test defines 'struct
> landlock_ruleset_attr'
> in lapi/landlock.h which contains handled_access_net directly, this is
> likely the
> root cause lead test failed on your box.
I'm sorry for a noise, my bad. Basic error - I forget to run
make autotools && ./configure
Thanks, patch merged.
Kind regards,
Petr
More information about the ltp
mailing list