-
Notifications
You must be signed in to change notification settings - Fork 431
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
Matched rules #4484
base: main
Are you sure you want to change the base?
Matched rules #4484
Conversation
PoliciesConfig: *cfg, | ||
TraceePid: uint32(os.Getpid()), | ||
Options: t.getOptionsConfig(), | ||
CgroupV1Hid: uint32(t.cgroups.GetDefaultCgroupHierarchyID()), |
Check failure
Code scanning / CodeQL
Incorrect conversion between integer types High
strconv.Atoi
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.
I've mentioned about this in #4482 (comment).
386226b
to
3ad4cf4
Compare
THIS PATCH IS NOT COMPLETE. NEED TO ADD USERSPACE PART. Look for proc_tree and process_tree in userspace and remove them as well
3ad4cf4
to
2ebef5c
Compare
f5f0967
to
1f411ed
Compare
1f411ed
to
6a0c8a7
Compare
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.
Just a quick (so quick) pass. Tomorrow I'm going to dive into this.
func (e *policyError) Is(target error) bool { | ||
t, ok := target.(*policyError) | ||
if !ok { | ||
return false | ||
} | ||
return e.msg == t.msg |
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.
Perhaps it should be better to rely on the errors.Is()
since it takes care of unwrapping.
PoliciesConfig: *cfg, | ||
TraceePid: uint32(os.Getpid()), | ||
Options: t.getOptionsConfig(), | ||
CgroupV1Hid: uint32(t.cgroups.GetDefaultCgroupHierarchyID()), |
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.
I've mentioned about this in #4482 (comment).
1. Explain what the PR does
WIP
2. Explain how to test it
3. Other comments