-
Notifications
You must be signed in to change notification settings - Fork 42
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
fix(decl): fix syscalls argument parsing and cleanup logic #247
Conversation
Signed-off-by: Leonardo Di Giovanna <leonardodigiovanna1@gmail.com> Co-authored-by: Aldo Lacuku <aldo@lacuku.eu>
Signed-off-by: Leonardo Di Giovanna <leonardodigiovanna1@gmail.com> Co-authored-by: Aldo Lacuku <aldo@lacuku.eu>
Signed-off-by: Leonardo Di Giovanna <leonardodigiovanna1@gmail.com> Co-authored-by: Aldo Lacuku <aldo@lacuku.eu>
Generalize parsing of system call arguments by treating them as map[string]interface{} (instead of map[string]string). This enables field binding at arbitrary level and decouples architecture inner layers from tests input encoding. Signed-off-by: Leonardo Di Giovanna <leonardodigiovanna1@gmail.com> Co-authored-by: Aldo Lacuku <aldo@lacuku.eu>
Signed-off-by: Leonardo Di Giovanna <leonardodigiovanna1@gmail.com> Co-authored-by: Aldo Lacuku <aldo@lacuku.eu>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ekoops, FedeDP The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
LGTM label has been added. Git tree hash: d16e8d12f567ba854dd25af5cf206749d409a973
|
1666123
into
falcosecurity:declarative-testing
What type of PR is this?
/kind bug
Any specific area of the project related to this PR?
/area pkg
What this PR does / why we need it:
This PR fixes the system call arguments are handled, starting from the decoding phase up to the system call step arguments settings. Specifically, arguments are now parsed as
map[string]interface{}
(instead ofmap[string]string
): this enables field binding at arbitrary level and decouples architecture inner layers from tests input encoding.Moreover, this PR replaces
interface{}
with the equivalent but more explicitany
.Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer: