Open rafaeldtinoco opened 2 years ago
I am bringing this up again, but as a general issue. We should create a method for events to announce which kernels they support (or don't support) and announce to the user + avoid being loaded if they are not supported. We should think if it should be in the event level, or the probe level.
We will need the dependency on the kernel version to support fine tuning of major, minor and patch versions. For example, event works only for 6.3.4 and forward for patch versions (aka 6.3.x), and for 6.4 and forward for minor versions (and any major afterwards by default).
We should create a method for events to announce which kernels they support (or don't support) and announce to the user + avoid being loaded if they are not supported.
@yanivagman should comment here based on previous discussions IMO.
Yaniv and I thought about this, but there is a bigger problem. Versions don't mean anything for eBPF features in LTS kernels from distros (RedHat or SuSe). Well, mostly for RedHat, as they backport features for their older kernels.
With that said, we ended up thinking that the eBPF features probe (in our TODO list) + multiple eBPF objects (in our TODO list) could help: By probing if features are available, and possibly having more than 1 version of the eBPF programs, we could support different kernel versions, or disable policies/filters/events if they can't be supported.
OTOH, we could have a list of known(supported) distros and kernel versions and know exactly what features they support before the feature probing feature. Either way, I believe it hasn't been fully developed due to lack of time in our roadmap (and priorities).
Prerequisites
Select one OR another:
Bug description
This is a continuation of https://github.com/aquasecurity/tracee/pull/1663 and Alon is compromised in fixing it after we implement the kernel versioning dependency (per event) support.
Steps to reproduce
Steps to reproduce the issue:
This error will be fixed, but in a
hacky
way as commented at: https://github.com/aquasecurity/tracee/pull/1663#issuecomment-1099092194Context
Relevant information about my setup:
Additional Information (files, logs, etc)