iovisor / gobpf

Go bindings for creating BPF programs.
Apache License 2.0
2.14k stars 314 forks source link

Does gobpf support LSM_PROBE ? #312

Open YJesus opened 2 years ago

YJesus commented 2 years ago

I can't find any reference of LSM in the code. Is possible to use LSM_PROBE in gobpf ??

YJesus commented 2 years ago

ok I answer myself: To build ELF object files for use with the elf package, you must use specific sections (SEC("...")). The following are currently supported:

kprobe/... cgroup/skb cgroup/sock maps/... socket... tracepoint... uprobe/... uretprobe/... xdp/...

But is there any chance to implement using RawTracepoint ??