Beyla: inform that CAP_NET_ADMIN is required
In the error message that Beyla shows when some capabilities are missing, it is not currently showing that CAP_NET_ADMIN is required, as tc_ingress and tc_egress ebpf programs require that extra capability.
Because the bpf programs tc_ingress and tc_egress are part of ktracer, they are being unconditionally loaded. When fixing this issue, we need to make sure they are not loaded when cfg.EBPF.UseLinuxTC is set to false, as the loading of these programs is what requires CAP_NET_ADMIN.
Ah good catch @rafaelroquetto, I think we should add a separate issue to make sure we don't miss this part.
@mariomac have we improved the error message and now tell people that the capability is missing?
@grafsean correct, we now display the error message citing CAP_NET_ADMIN when it's missing. We can close this issue if you want. This is the related PR: https://github.com/grafana/beyla/pull/1588
@rafaelroquetto and does this PR #1587 add the necessary documentation?