Re: [LTP] [PATCH v2 4/4] Add error coverage for landlock network support

Andrea Cervesato via ltp
2024-11-06T10:29:31Z

Hi Cyril,

On 11/5/24 16:39, Cyril Hrubis wrote:
>> - verify_landlock_is_enabled();
>> + abi_current = verify_landlock_is_enabled();
>>
>> ruleset_attr->handled_access_fs = LANDLOCK_ACCESS_FS_EXECUTE;
>>
>> 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.
>
>> }
>>

In what sense? abi4 is already the last one. At least the last supported
by LTP.

Andrea