-
Notifications
You must be signed in to change notification settings - Fork 164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[LIBS PLUGINS] Accessors to libs state tables fields #1712
Comments
I think it's safe to add this one to the ones exported by libsinsp.
Non-trivial types (e.g. vectors, maps) are something we currently don't support in the state API. This is something I have on my backlog since a while and is something I'm trying to figure out the best solution for. My guess is that the
Both the fd tables and the containers table are not exported yet. There are technical implications behind this that are similar to the ones of non-trivial types. Again, this is something I'm working on. How much of a road blocker is this currently for developing your plugin? Is this something you can attain from inspecting event payloads for the short term? |
It would also be fair to find an (interim) way to support a set of currently known vector types etc, most notably to expose the cmd args as this is part of the backbone of the
Thanks @jasondellaluce, basically right now I cannot implement the planned v1 of the How can I help to make this happen? |
@jasondellaluce: @leogr shared that you are already looking into it 🎉 ❤️ . In case a prioritization is useful: Top 1: Access to Actually Top 1 is all that is needed for a v1, but full access to the entire state would of course be ideal. Timelines: If we get this in for Falco 0.38.0 I can release an experimental |
@incertum yes, this is on my plate, so the Falco 0.38 deadline seems very reasonable.
Good call about the cmdline, we currently don't share that. As for |
Just want to update that I'm working on this together with @mrgian and I'm gonna open up a tracking issue for the workstream in few days |
Opened the first PR implementing the feature. The contribution plan is expected to consists of 4 pull requests:
/milestone 0.17.0 Tentative ☝️ |
Amazing thanks a bunch @jasondellaluce! |
@incertum the changes tracked in #1712 (comment) are now all merged, and I think this should suit most of the needs for this tickets. The only thing left out is the containers table for now. |
Amazing, I'll get back to the plugin soon (after Falco 0.38.0 is out) and will check it out. Thanks so much ❤️ ! Should we close this one and open a new one for what's left for future use cases? |
Motivation
Opening this issue first with the intention of seeking clarifications. Based on the answers received, there may or may not be a need to request an expansion or improvement of the plugin API.
While onboarding falcosecurity/plugins#419 to the plugin framework for syscall event analysis augmentation, I encountered a few hiccups:
define_static_field
in libs, it seemed inaccessible. For example, the following didn't work:m_exe_from_memfd = m_thread_table.get_field(t.fields(), "exe_from_memfd", st::SS_PLUGIN_ST_BOOL);
The text was updated successfully, but these errors were encountered: