Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Complie Error #1

Open
xhat007 opened this issue Nov 12, 2021 · 1 comment
Open

Complie Error #1

xhat007 opened this issue Nov 12, 2021 · 1 comment

Comments

@xhat007
Copy link

xhat007 commented Nov 12, 2021

Compilcation Error on CentOS 7.9.2009 , Kernel : 3.10.0-1127.19.1.el7.x86_64

exploit.c: In function ‘arbitrary_read32’: exploit.c:581:16: error: ‘struct bpf_map_info’ has no member named ‘btf_id’ return info.btf_id; ^

exploit.c: At top level: exploit.c:656:59: error: initializer element is not constant static const size_t insns_size = insn_cnt * sizeof(struct bpf_insn);

exploit.c: In function ‘thread_fn’: exploit.c:687:42: error: ‘SO_ATTACH_BPF’ undeclared (first use in this function) if (setsockopt(socks[0], SOL_SOCKET, SO_ATTACH_BPF, &prog_fd, sizeof(prog_fd))) die();

exploit.c:687:42: note: each undeclared identifier is reported only once for each function it appears in exploit.c:849:58: error: ‘BPF_MAP_TYPE_STACK’ undeclared (first use in this function) op_write32(sock, offsetof_struct_bpf_array_map_type, BPF_MAP_TYPE_STACK);

@explosion335
Copy link

try yum install fuse fuse-devel
If no luck then try apt install libfuse-dev on other distro, debian works for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants