falcosecurity / libs

libsinsp, libscap, the kernel module driver, and the eBPF driver sources
https://falcosecurity.github.io/libs/
Apache License 2.0
222 stars 162 forks source link

renovate the libsinsp filter parser #216

Closed jasondellaluce closed 2 years ago

jasondellaluce commented 2 years ago

Motivation

One major feature of libsinsp is that it can parse filters, and be configured with one. This is the basis on top of which the Falco rule engine is built, augmenting the feature to support sets of filters (the rulesets, as we know them). However, the filter parser inside libsinsp, implemented in the sinsp_filter_compiler class, has some relevant issues:

Feature

We need to renovate, and perhaps re-implement the filter parser to address all the points above. Eventually, we may want to make Falco use the parser in libsinsp and remove the implementation replication.

Alternatives

I don't personally see the leave things as they are solution as viable. I see this as a big limiter for the project.

Additional context

leogr commented 2 years ago

I don't personally see the leave things as they are solution as viable. I see this as a big limiter for the project.

:clap: