-
Notifications
You must be signed in to change notification settings - Fork 176
feat!: simplify scap-converter returned codes and stop propagating events by default to upper layers #2657
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
Conversation
Remove `EF_TMP_CONVERTER_MANAGED` flag for some some old enter events, and remove the related conversion instructions from the scap converter table. BREAKING CHANGE: some old enter events are not delivered anymore to sinsp Signed-off-by: Leonardo Di Giovanna <[email protected]>
Rename `C_ACTION_{SKIP,STORE_AND_SKIP}` to
`C_ACTION_{PASS,STORE_AND_PASS}` to make clearer the intention to pass
the event to the upper layers.
Signed-off-by: Leonardo Di Giovanna <[email protected]>
Signed-off-by: Leonardo Di Giovanna <[email protected]>
|
Please double check driver/SCHEMA_VERSION file. See versioning. /hold |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ekoops 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 |
`C_ACTION_STORE` now stores the event in the internal scap converter event storage and returns `CONVERSION_DROP`, preventing the event being passed up to the upper layers. BREAKING CHANGE: all scap converter's internally-stored events are not propagated anymore to sinsp Signed-off-by: Leonardo Di Giovanna <[email protected]>
5106f3a to
c56139a
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2657 +/- ##
==========================================
- Coverage 78.21% 78.18% -0.03%
==========================================
Files 292 292
Lines 31781 31781
Branches 4654 4656 +2
==========================================
- Hits 24856 24848 -8
- Misses 6925 6933 +8
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
/remove-hold |
Perf diff from master - unit testsHeap diff from master - unit testsHeap diff from master - scap fileBenchmarks diff from master |
What type of PR is this?
/kind cleanup
/kind test
/kind feature
Any specific area of the project related to this PR?
/area libscap-engine-savefile
/area libsinsp
/area tests
Does this PR require a change in the driver versions?
What this PR does / why we need it:
This PR performs three major tasks:
EF_TMP_CONVERTER_MANAGEDto some old enter events; since these enter events are not needed anymore by the upper layers, it is possible to leverage the new default scap converter logic dropping old enter events not having theEF_TMP_CONVERTER_MANAGEDflag to do the job; this also allows to remove the corresponding entries from the event tableCONVERSION_COMPLETEDandCONVERSION_SKIP; these two converter result are not distinguishable anymore, and there is no reason to keep them separate; the new resulting code is calledCONVERSION_PASS, which states clearly what is the intention (i.e.: passing the event to the upper layers)C_ACTION_STOREfrom "store a copy of the event and let the original one proceed to the upper layers" to "store a copy of the event and don't propagate anything to the upper layers"Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Not bumping the driver schema version is currently a practice we are following as we will bump it in a single shot once we are done with the #2068 proposal.
/milestone 0.22.0
Does this PR introduce a user-facing change?: