Carbon Black Cloud Audit and Remediation (formerly Cb Live Ops)Carbon Black Cloud Endpoint Standard (formerly Cb Defense)Carbon Black Cloud Enterprise EDR (formerly Cb Threathunter)
Issue/Introduction
How to allow BPF event collection on SELinux, as some Linux distributions with SELinux may have a default policy that blocks services making BPF calls.
Detecting SELinux denials in the /var/log/messages file
Enterprise Linux distros like Oracle, CentOS and RedHat will contain a message about denying the BPF from working:
setroubleshoot: SELinux is preventing event_collector from map_create access
Errors in the Linux sensor bpf_event_collector.log:
[DATE] [5522:5522] [W] libbpf: Error in bpf_object__probe_loading():Permission denied(13). Couldn't load trivial BPF program. Make sure your kernel supports BPF (CONFIG_BPF_SYSCALL=y) and/or that RLIMIT_MEMLOCK is set to big enough value.
Environment
Carbon Black Cloud Linux sensor: 2.10.x and higher
The program `allow2audit` is not smart enough to allow other bpf operations, so create or edit the generated file name `cbagent.te` to look more like the following: