-
Bug
-
Resolution: Unresolved
-
Undefined
-
None
-
False
-
-
False
-
None
-
rhel-se-kernel
-
-
/kernel-tests-public/security/selinux/testsuite testing for kernel-rt-4.18.0-553.107.1.rt7.448.el8_10 failed with the following build error:
https://datawarehouse.cki-project.org/kcidb/builds/1323863
:: [ 13:47:44 ] :: [ BEGIN ] :: Running 'env -u ARCH -u DISTRO LANG=C unbuffer make -s test SELINUXFS=/sys/fs/selinux SUPPORTS_CIL=y 2>&1 | tee -a results.log' Compiling targeted test_policy module Creating targeted test_policy.pp policy package token_test.c: In function 'userns_map_create': token_test.c:232:2: warning: implicit declaration of function 'LIBBPF_OPTS'; did you mean 'LIBBPF_API'? [-Wimplicit-function-declaration] LIBBPF_OPTS(bpf_map_create_opts, map_opts); ^~~~~~~~~~~ LIBBPF_API token_test.c:232:14: error: 'bpf_map_create_opts' undeclared (first use in this function); did you mean 'bpf_link_create_opts'? LIBBPF_OPTS(bpf_map_create_opts, map_opts); ^~~~~~~~~~~~~~~~~~~ bpf_link_create_opts token_test.c:232:14: note: each undeclared identifier is reported only once for each function it appears in token_test.c:232:35: error: 'map_opts' undeclared (first use in this function); did you mean 'optopt'? LIBBPF_OPTS(bpf_map_create_opts, map_opts); ^~~~~~~~ optopt token_test.c:236:13: warning: implicit declaration of function 'bpf_token_create'; did you mean 'bpf_iter_create'? [-Wimplicit-function-declaration] token_fd = bpf_token_create(mnt_fd, NULL); ^~~~~~~~~~~~~~~~ bpf_iter_create token_test.c:242:23: error: 'BPF_F_TOKEN_FD' undeclared (first use in this function); did you mean 'BTF_F_NONAME'? map_opts.map_flags = BPF_F_TOKEN_FD; ^~~~~~~~~~~~~~ BTF_F_NONAME token_test.c:244:11: warning: implicit declaration of function 'bpf_map_create'; did you mean 'bpf_map_freeze'? [-Wimplicit-function-declaration] map_fd = bpf_map_create(BPF_MAP_TYPE_STACK, "userns_map_create", 0, 8, 1, ^~~~~~~~~~~~~~ bpf_map_freeze token_test.c: In function 'userns_prog_load': token_test.c:264:14: error: 'bpf_prog_load_opts' undeclared (first use in this function); did you mean 'bpf_prog_load_attr'? LIBBPF_OPTS(bpf_prog_load_opts, prog_opts); ^~~~~~~~~~~~~~~~~~ bpf_prog_load_attr token_test.c:264:34: error: 'prog_opts' undeclared (first use in this function); did you mean 'bpffs_opts'? LIBBPF_OPTS(bpf_prog_load_opts, prog_opts); ^~~~~~~~~ bpffs_opts token_test.c:283:25: error: 'BPF_F_TOKEN_FD' undeclared (first use in this function); did you mean 'BTF_F_NONAME'? prog_opts.prog_flags = BPF_F_TOKEN_FD; ^~~~~~~~~~~~~~ BTF_F_NONAME token_test.c:286:26: warning: passing argument 1 of 'bpf_prog_load' makes pointer from integer without a cast [-Wint-conversion] prog_fd = bpf_prog_load(BPF_PROG_TYPE_XDP, "token_prog", "GPL", ^~~~~~~~~~~~~~~~~ In file included from token_test_common.h:8, from token_test.c:16: /usr/include/bpf/libbpf.h:528:42: note: expected 'const char *' but argument is of type 'int' LIBBPF_API int bpf_prog_load(const char *file, enum bpf_prog_type type, ~~~~~~~~~~~~^~~~ token_test.c:286:45: error: incompatible type for argument 2 of 'bpf_prog_load' prog_fd = bpf_prog_load(BPF_PROG_TYPE_XDP, "token_prog", "GPL", ^~~~~~~~~~~~ In file included from token_test_common.h:8, from token_test.c:16: /usr/include/bpf/libbpf.h:528:67: note: expected 'enum bpf_prog_type' but argument is of type 'char *' LIBBPF_API int bpf_prog_load(const char *file, enum bpf_prog_type type, ~~~~~~~~~~~~~~~~~~~^~~~ token_test.c:286:59: warning: passing argument 3 of 'bpf_prog_load' from incompatible pointer type [-Wincompatible-pointer-types] prog_fd = bpf_prog_load(BPF_PROG_TYPE_XDP, "token_prog", "GPL", ^~~~~ In file included from token_test_common.h:8, from token_test.c:16: /usr/include/bpf/libbpf.h:529:29: note: expected 'struct bpf_object **' but argument is of type 'char *' struct bpf_object **pobj, int *prog_fd); ~~~~~~~~~~~~~~~~~~~~^~~~ token_test.c:287:5: warning: passing argument 4 of 'bpf_prog_load' from incompatible pointer type [-Wincompatible-pointer-types] insns, insn_cnt, &prog_opts); ^~~~~ In file included from token_test_common.h:8, from token_test.c:16: /usr/include/bpf/libbpf.h:529:40: note: expected 'int *' but argument is of type 'struct bpf_insn *' struct bpf_object **pobj, int *prog_fd); ~~~~~^~~~~~~ token_test.c:286:12: error: too many arguments to function 'bpf_prog_load' prog_fd = bpf_prog_load(BPF_PROG_TYPE_XDP, "token_prog", "GPL", ^~~~~~~~~~~~~ In file included from token_test_common.h:8, from token_test.c:16: /usr/include/bpf/libbpf.h:528:16: note: declared here LIBBPF_API int bpf_prog_load(const char *file, enum bpf_prog_type type, ^~~~~~~~~~~~~ make[2]: *** [Makefile:19: bpf_test] Error 1 make[1]: *** [Makefile:195: all] Error 1 make: *** [Makefile:8: test] Error 2 :: [ 13:48:09 ] :: [ FAIL ] :: Command 'env -u ARCH -u DISTRO LANG=C unbuffer make -s test SELINUXFS=/sys/fs/selinux SUPPORTS_CIL=y 2>&1 | tee -a results.log' (Expected 0, got 2)
- links to