Conversation
Andreagit97
left a comment
There was a problem hiding this comment.
Thanks for the amazing work @FedeDP 😍 Seeing the two event tables together was one of my forbidden dreams 😆
/approve
|
LGTM label has been added. DetailsGit tree hash: 67d6ead259b50e92e94a915b3c737d8e84bbb5de |
|
LGTM label has been added. DetailsGit tree hash: 5fa4cf3bd8ca592ca229cbc30ec8fe5084dd302a |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Andreagit97, FedeDP The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
Hold this one until Falco 0.32.0 is out; too big and risky change (even if it is just a big refactor). /hold |
|
/test build-libs |
|
Remainder for myself: understand why syscall_info_table has EF_NONE/EF_DROP_SIMPLE_CONS (ie: a subset of event_table event flags). Can't we drop the flags from there and deduplicate a bit these 2 tables? |
|
/cc @Andreagit97 @alacuku |
|
@FedeDP: GitHub didn't allow me to request PR reviews from the following users: alacuku. Note that only falcosecurity members and repo collaborators can review this PR, and authors cannot review their own PRs. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
…array member to struct ppm_evt_hdr to manage events payload (both len headers and actual event data) without abusing c pointer arithmetic. Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
…le` into `g_syscall_table`. They were the exactly same table (ie: same indexes) but with different values. Extended `struct syscall_evt_pair` adding a `ppm_code' member. Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
…ningful value. It now gets generated at the first call to scap_get_syscall_info_table(), and uses flags, categories and names from event_table. This way, we avoid issues where the 2 tables get unsynced. Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
|
New changes are detected. LGTM label has been removed. |
|
TODO for completely dropping syscall_info_table, in favor of an autogenerated table during first call to
|
Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
2fef46c to
d367474
Compare
|
Issues go stale after 90d of inactivity. Mark the issue as fresh with Stale issues rot after an additional 30d of inactivity and eventually close. If this issue is safe to close now please do so with Provide feedback via https://github.com/falcosecurity/community. /lifecycle stale |
|
Stale issues rot after 30d of inactivity. Mark the issue as fresh with Rotten issues close after an additional 30d of inactivity. If this issue is safe to close now please do so with Provide feedback via https://github.com/falcosecurity/community. /lifecycle rotten |
|
Biggest parts of this one, ie:
Merged.
There is an open PR for that: #649 The only remaining part depends upon C99. I am not sure whether it is an issue or now. Still, i think the flexible array member cleanup is good from a dev PoV. |
|
Rotten issues close after 30d of inactivity. Reopen the issue with Mark the issue as fresh with Provide feedback via https://github.com/falcosecurity/community. |
|
@poiana: Closed this PR. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
What type of PR is this?
/kind cleanup
Any specific area of the project related to this PR?
/area build
/area driver-kmod
/area driver-ebpf
/area libscap
/area libsinsp
What this PR does / why we need it:
This PR has been splitted from #86.
Std states:
Note about the padding: we use an uint8_t for flexible array member, thus it shall not change padding in our case: you store sizeof(ppm_evt_hdr) + sizeof hdrs + sizeof(payload) and you load exactly the same;
but the flexible array member helps in avoiding pointer arithmetic when dealing with hdrs and payload.
I tested the dump/read of scap files:
merged
g_syscall_code_routing_tableintog_syscall_tableThe
g_syscall_code_routing_tablewas not really useful by itself, and the 2 tables had same indexing.dropped
syscall_info_table; it is now automatically generated during first call toscap_get_syscall_info_tableusing data fromsyscall_tableandevent_table. This way, categories or flags cannot be desynced anymore.forced gnu99 as C standard
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: