-
Notifications
You must be signed in to change notification settings - Fork 474
chore(tetragon): consolidate action verification checks #4077
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
base: main
Are you sure you want to change the base?
Conversation
pkg/sensors/tracing/generickprobe.go
Outdated
| } | ||
|
|
||
| if selectors.HasSigkillAction(f) && !config.EnableLargeProgs() { | ||
| if selectors.HasAction(f, "sigkill") && !config.EnableLargeProgs() { |
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.
maybe using ActionType... constants would be less error prone, like:
if selectors.HasAction(f, ActionTypeSigKill)
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.
agreed
b37831b to
c81df36
Compare
Signed-off-by: David Windsor <[email protected]>
c81df36 to
9951075
Compare
Signed-off-by: David Windsor <[email protected]>
9951075 to
409935e
Compare
| act := strings.ToLower(s.MatchActions[j].Action) | ||
| if act == "sigkill" { | ||
| // HasAction returns true if any selector in the KProbeSpec has the specified action | ||
| func HasAction(kspec *v1alpha1.KProbeSpec, actionName string) bool { |
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.
do we have user for this one?
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.
nope let's remove it, thanks
|
is it ready to be merged? Because it's approved but there's a comment on removing stuff that has not been removed yet iiuc, cc @dwindsor |
Fixes #4076
Description
Changelog