Files
bpf-developer-tutorial/10-lsm-connect

layout, title, date, category, author, tags, summary
layout title date category author tags summary
post lsm-connect 2022-10-10 16:18 bpftools yunwei37
bpftools
examples
lsm
no-output
BPF LSM program (on socket_connect hook) that prevents any connection towards 1.1.1.1 to happen. Found in demo-cloud-native-ebpf-day

run

docker run -it -v `pwd`/:/src/ yunwei37/ebpm:latest

or compile with ecc:

$ ecc lsm-connect.bpf.c
Compiling bpf object...
Packing ebpf object and config into package.json...

Run:

sudo ecli  examples/bpftools/lsm-connect/package.json

reference

https://github.com/leodido/demo-cloud-native-ebpf-day