[LTP] [PATCH 1/7] Add fallback definitions of LSM syscalls
Wei Gao
wegao@suse.com
Thu Nov 14 02:55:30 CET 2024
On Thu, Nov 14, 2024 at 12:11:56AM +0100, Petr Vorel wrote:
> 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.
Thanks for clarification!
>
> Kind regards,
> Petr
>
More information about the ltp
mailing list