![]() * add lsm go example * fix: fix some of issues pointed out by deepsource * add: add go examples & execve & fix callback types in rust runtime * fix: fix go CI; install tinygo in CI machines --------- Co-authored-by: dexian <dexian@yunshan.net> |
||
---|---|---|
.. | ||
Makefile | ||
README.md | ||
libbpf-wasm.h | ||
lsm.bpf.c | ||
lsm.c |
README.md
Demo BPF applications
lsm-rmdir
lsm-rmdir
hook in dir remove and check the permission to remove a directory. If dir
name with can_not_rm
will raise Operation not permitted.
We can provide a similar developing experience as the libbpf-bootstrap development. Just run make
to build the wasm binary:
make
Note: LSM may failed to load if the kernel is not configured as:
CONFIG_DEBUG_INFO_BTF=y
CONFIG_BPF_LSM=y
CONFIG_LSM="[other LSMs],bpf"
go wasm example(need tinygo):
make lsm_go_wasm # will output to go_wasm/lsm.go.wasm