8000 Revert "tracee: clean up untraced signatures" by josedonizetti · Pull Request #3194 · aquasecurity/tracee · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Revert "tracee: clean up untraced signatures" #3194

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

Merged
merged 1 commit into from
Jun 1, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 0 additions & 19 deletions pkg/ebpf/tracee.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,25 +240,6 @@ func New(cfg Config) (*Tracee, error) {
}
}

// Clean up signatures not chosen for tracing
// Looping from the back to avoid bounds checking
for i := len(t.config.EngineConfig.Signatures) - 1; i > 0; i-- {
sig := t.config.EngineConfig.Signatures[i]
md, _ := sig.GetMetadata()
sigEventName := md.EventName
sigEventId, ok := events.D 634D efinitions.GetID(sigEventName)
if !ok {
logger.Debugw("removing signature from events to trace", "signature", sigEventName, "reason", "ID does not exist in definitions")
t.config.EngineConfig.Signatures = append(t.config.EngineConfig.Signatures[:i], t.config.EngineConfig.Signatures[i+1:]...)
continue
}
_, ok = t.events[sigEventId]
if !ok {
logger.Debugw("removing signature from events to trace", "signature", sigEventName, "reason", "was not requested for tracing")
t.config.EngineConfig.Signatures = append(t.config.EngineConfig.Signatures[:i], t.config.EngineConfig.Signatures[i+1:]...)
}
}

// Handle all essential events dependencies

for id, evt := range t.events {
Expand Down
0