Skip to content
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

feat(helpers): reapply: unparsed flag helpers #4545

Merged
merged 1 commit into from
Jan 23, 2025

Conversation

geyslan
Copy link
Member

@geyslan geyslan commented Jan 22, 2025

This is part of #4541 to make possible to merge #4544.

1. Explain what the PR does

ed62bef feat(helpers): unparsed flag helpers

flag helpers previously took a string argument to test against possible
flag configurations. New implementation takes the integer form and
makes the test with the bit flag directly.

It makes use of syscall package to get constants for the flags instead
of Tracee's parsers package.

Co-authored-by: Geyslan Gregório <[email protected]>

2. Explain how to test it

3. Other comments

flag helpers previously took a string argument to test against possible
flag configurations. New implementation takes the integer form and
makes the test with the bit flag directly.

It makes use of syscall package to get constants for the flags instead
of Tracee's parsers package.

Co-authored-by: Geyslan Gregório <[email protected]>
@geyslan
Copy link
Member Author

geyslan commented Jan 22, 2025

I've cancelled the tests since the change is not reflect on main go.mod yet.

@geyslan geyslan requested a review from rscampos January 22, 2025 19:46
Copy link
Collaborator

@yanivagman yanivagman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@geyslan geyslan merged commit f57a1eb into aquasecurity:main Jan 23, 2025
13 of 42 checks passed
geyslan added a commit to geyslan/tracee that referenced this pull request Jan 23, 2025
flag helpers previously took a string argument to test against possible
flag configurations. New implementation takes the integer form and
makes the test with the bit flag directly.

It makes use of syscall package to get constants for the flags instead
of Tracee's parsers package.

Co-authored-by: Nadav Strahilevitz <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants