Hi all
I’m in the process of updating my parca-agent
snap. Parca Agent is an eBPF based profiling tool, and they recently landed a change that performs some checks on startup to try and ensure the host kernel was compiled with the correct kernel options that enable the eBPF features they depend on.
They detect this by trying to read the kernel config from three locations:
/proc/config.gz
/boot/config
/boot/config-$(uname -r)
I’d like to propose the addition of a new interface in snapd, perhaps named kernel-config
that grants read-only access to these paths.
I can potentially have a go at a PR to implement this based on some of the existing interfaces if that’s helpful (I’m unfamiliar with the codebase, but willing ;-)).
Not sure on the usual process for adding interfaces to snapd itself, and haven’t found any docs on the process.
Thanks, Jon
/cc @mvo @pedronis @alexmurray