[LTP] [PATCH 02/10] Add lapi/landlock.h fallback

Li Wang liwang@redhat.com
Tue Jul 2 09:32:17 CEST 2024


On Mon, Jul 1, 2024 at 11:43 PM Andrea Cervesato <andrea.cervesato@suse.de>
wrote:

> From: Andrea Cervesato <andrea.cervesato@suse.com>
>
> Signed-off-by: Andrea Cervesato <andrea.cervesato@suse.com>
> ---
>  configure.ac            |   5 ++
>  include/lapi/landlock.h | 120
> ++++++++++++++++++++++++++++++++++++++++++++++++
>  2 files changed, 125 insertions(+)
>
> diff --git a/configure.ac b/configure.ac
> index 82969b8d3..e5f0c9f77 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -157,6 +157,7 @@ AC_CHECK_FUNCS_ONCE([ \
>  AC_CHECK_FUNCS(mkdtemp,[],AC_MSG_ERROR(mkdtemp() not found!))
>
>  AC_CHECK_MEMBERS([struct fanotify_event_info_fid.fsid.__val],,,[#include
> <sys/fanotify.h>])
> +AC_CHECK_MEMBERS([struct
> landlock_ruleset_attr.handled_access_net],,,[#include <linux/landlock.h>])
>  AC_CHECK_MEMBERS([struct perf_event_mmap_page.aux_head],,,[#include
> <linux/perf_event.h>])
>  AC_CHECK_MEMBERS([struct sigaction.sa_sigaction],[],[],[#include
> <signal.h>])
>  AC_CHECK_MEMBERS([struct statx.stx_mnt_id, struct
> statx.stx_dio_mem_align],,,[
> @@ -170,6 +171,7 @@ AC_CHECK_MEMBERS([struct utsname.domainname],,,[
>  ])
>
>  AC_CHECK_TYPES([enum kcmp_type],,,[#include <linux/kcmp.h>])
> +AC_CHECK_TYPES([enum landlock_rule_type],,,[#include <linux/landlock.h>])
>  AC_CHECK_TYPES([struct acct_v3],,,[#include <sys/acct.h>])
>  AC_CHECK_TYPES([struct af_alg_iv, struct sockaddr_alg],,,[# include
> <linux/if_alg.h>])
>  AC_CHECK_TYPES([struct fanotify_event_info_fid, struct
> fanotify_event_info_error,
> @@ -190,6 +192,9 @@ AC_CHECK_TYPES([struct if_nextdqblk],,,[#include
> <linux/quota.h>])
>  AC_CHECK_TYPES([struct iovec],,,[#include <sys/uio.h>])
>  AC_CHECK_TYPES([struct ipc64_perm],,,[#include <sys/ipcbuf.h>])
>  AC_CHECK_TYPES([struct loop_config],,,[#include <linux/loop.h>])
> +AC_CHECK_TYPES([struct landlock_ruleset_attr],,,[#include
> <linux/landlock.h>])
> +AC_CHECK_TYPES([struct landlock_path_beneath_attr],,,[#include
> <linux/landlock.h>])
> +AC_CHECK_TYPES([struct landlock_net_port_attr],,,[#include
> <linux/landlock.h])
>

This line misses the ), it should be:

-AC_CHECK_TYPES([struct landlock_net_port_attr],,,[#include
<linux/landlock.h])
+AC_CHECK_TYPES([struct landlock_net_port_attr],,,[#include
<linux/landlock.h>])


-- 
Regards,
Li Wang


More information about the ltp mailing list