BPF/eBPF kernel-feature readiness for OpenCharly — the one canonical surface for "is this kernel BPF-ready" assertions on any venue (bare host or VM guest).
Every eBPF-consuming workload charly deploys or probes (security LSM tooling, observability agents, GPU managers like cardwire, kernel-feature gating in check beds) reuses this plugin instead of baking ad-hoc copies. All reads are read-only and direct — no shelling out.
| Capability | Surface |
|---|---|
command:bpf |
charly bpf status | lsm | config | probe |
verb:bpf |
the declarative bpf: check step any candy can bake into its plan |
charly bpf status [--json]— read-only report: kernel, active LSM list (/sys/kernel/security/lsm) with the bpf presence, BTF (/sys/kernel/btf/vmlinux),CONFIG_BPF_LSM/CONFIG_DEBUG_INFO_BTF,unprivileged_bpf_disabled, RLIMIT_MEMLOCK, bpftool presence, lockdown. Every unreadable fact prints an explicit N/A line; exit 0.charly bpf lsm— THE gate:BPF LSM: enabled+ exit 0 whenbpfis in the active LSM list;BPF LSM: DISABLED (…reboot…)+ exit 1 otherwise.charly bpf config— the BPF sysctl knobs, read-only.charly bpf probe <lsm|tracepoint> [--attach]— verify-only by default, with aPROBE-DRY-RUNverdict;--attach+ root + bpftool runsbpftool feature probe.
Compose the plugin candy in a box or check bed's candy: list:
- '@github.com/opencharly/plugin-bpf/candy/plugin-bpf:<tag>'Then author the verb in a plan:
- check: the venue kernel enables the bpf LSM
id: bpf-lsm-gate
bpf: lsm
context: [runtime]
stdout:
- contains: enabledThe authored plugin_input is validated at runtime against the self-contained
#BpfInput (schema/bpf.cue), spliced by the host.
candy/plugin-bpf/— the plugin module:plugin.go,provider.go,command.go,status.go,schema/bpf.cue,params/cue_types_gen.go,cmd/serve/main.go.candy/plugin-bpf/charly.yml— theplugin-bpf:candy entity and the embeddedbpf-skill:skill entity.charly.yml— the root project manifest (discover: candy), plus thecheck-bpf-localR10 witness bed..github/workflows/tag-on-merge.yml— CalVer tag +CHANGELOG/on merge.
- Owning skill:
/charly-bpf:bpf(projected from the embeddedbpf-skill:entity). - First consumer:
/charly-cardwire:cardwire— its status gates on the same BPF-LSM facts. /charly-internals:plugin— the plugin/provider model.opencharly/charly— the charly CLI.