[LTP] [PATCH v3 1/4] Fallback landlock network support

Andrea Cervesato andrea.cervesato@suse.com
Fri Nov 8 18:58:21 CET 2024


Hi Cyril,

you can’t because they are always defined. They can be 0 or 1. Check config.h

Andrea

> On 8 Nov 2024, at 16:53, Cyril Hrubis <chrubis@suse.cz> wrote:
> 
> Hi!
>> +#if !HAVE_DECL_LANDLOCK_RULE_PATH_BENEATH
> 
> I asked these to be changed to ifndef since they are more standard and
> more visible.
> 
>> +# define LANDLOCK_RULE_PATH_BENEATH 1
>> +#endif
>> +
>> +#if !HAVE_DECL_LANDLOCK_RULE_NET_PORT
> 
> Here as well.
> 
>> +# define LANDLOCK_RULE_NET_PORT 2
>> #endif
> 
> --
> Cyril Hrubis
> chrubis@suse.cz


More information about the ltp mailing list