[LTP] [PATCH] Add landlock07 test

Andrea Cervesato andrea.cervesato@suse.com
Wed Aug 21 13:28:54 CEST 2024


Hi!

On 8/21/24 13:26, Cyril Hrubis wrote:
> Hi!
>> +static void create_keyring(const int operation)
>> +{
>> +	TEST(keyctl(operation, NULL, 0, 0, 0));
>> +	if (TST_RET == -1)
>> +		tst_brk(TERRNO | TBROK, "keyctl() failed");
>> +}
> This looks like we should add SAFE_KEYCTL() instead...
>
> Other than that the rest of the code looks good.
>
I can add that. I also noticed that I didn't verify if landlock is 
enabled inside the setup(). I will add it.

Andrea



More information about the ltp mailing list