Commit Graph

2 Commits

Author SHA1 Message Date
Toke Høiland-Jørgensen
40706ad9fa lsm-nobpf: Check for presence of BPF LSM before loading
If the BPF LSM is compiled-in but not enabled, the loading of the BPF
program will succeed, but it won't actually do anything. Detect this
and abort rather than silently not working.

Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>
2020-10-12 16:53:24 +02:00
Toke Høiland-Jørgensen
54259af20a Add bpf-nolsm example for disabling bpf()
Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>
2020-10-12 14:58:41 +02:00