aquasecurity / libbpfgo

eBPF library for Go. Powered by libbpf.
Apache License 2.0
718 stars 92 forks source link

Implement libbpf bpf_program API #91

Open grantseltzer opened 2 years ago

grantseltzer commented 2 years ago

We should expose all of the bpf_program api, just being careful about what is deprecated and/or discouraged when 1.0 is released.

Low-level API:

saschagrunert commented 2 years ago

Hey folks, is anyone already working on the XDP API bits? I would require it for a PoC so I can probably contribute from this perspective.

grantseltzer commented 2 years ago

Hi @saschagrunert! No one currently has the XDP api on their plate, you're more than welcome to contribute and I'd be happy to help in any way I can!

rafaeldtinoco commented 2 years ago

BTW, there is a generic attachment interface now, right ?

image

It is tied to bpf_program__attach_cgroup and some other attachments.

rafaeldtinoco commented 2 years ago

bpf_program__attach_cgroup PR: https://github.com/aquasecurity/libbpfgo/pull/196