[LTP] [PATCH 1/7] Add fallback definitions of LSM syscalls

Petr Vorel pvorel@suse.cz
Thu Nov 14 00:11:56 CET 2024


Hi all,

...
> > +#ifdef HAVE_LINUX_LSM_H
> > +#include <linux/lsm.h>
> > +#endif
> I guess s/#endif/#else ?

IMHO this is correct. This guards just <linux/lsm.h> (added in 6.7).
All other fallback definitions are guarded by other checks, because UAPI headers
evolve over time, thus it would not help to guard all fallback definitions just
by HAVE_LINUX_LSM_H. Check other lapi headers, vast majority of those who
include header add fallback definitions will do it this way.

Kind regards,
Petr



More information about the ltp mailing list