Closed xiagao closed 9 months ago
[root@localhost /]# cd /usr/include/bpf/ [root@localhost bpf]# [root@localhost bpf]# [root@localhost bpf]# grep -nr pf_create_map [root@localhost bpf]# [root@localhost bpf]# [root@localhost bpf]# grep -nr bpf_map_create bpf.h:40:struct bpf_map_create_opts { bpf.h:55:#define bpf_map_create_opts__last_field map_ifindex bpf.h:57:LIBBPF_API int bpf_map_create(enum bpf_map_type map_type, bpf.h:62: const struct bpf_map_create_opts opts); libbpf_legacy.h:81: the very first bpf_prog_load(), bpf_map_create() or bpf_object__load()
Seems the function name was changed in recently kernel.
# git clone https://github.com/rhvgoyal/selinux-testsuite.git
# cd selinux-testsuite/ && git checkout virtiofs-support && make test ....
That's an old branch in someone else's fork. In this repo the issue has been addressed by commit 92c29366dffad9e8b1ef621d4fc07816ed121efe.
Hi, I tired to use this test suit to test virtiofs , but failed on 'make test', the detailed info is below.
# yum install -y perl-Test perl-Test-Harness perl-Test-Simple perl-lib selinux-policy-devel gcc libselinux-devel net-tools netlabel_tools iptables lksctp-tools-devel attr libbpf-devel keyutils-libs-devel quota xfsprogs-devel libuuid-devel e2fsprogs dosfstools nftables kernel-devel-$(uname -r) kernel-modules-$(uname -r)
# git clone https://github.com/rhvgoyal/selinux-testsuite.git