Skip to content

Commit

Permalink
feat(ebpf): add capabilities according to all fallbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
AlonZivony committed Jun 11, 2024
1 parent 36c0305 commit 797b221
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pkg/ebpf/tracee.go
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,18 @@ func New(cfg config.Config) (*Tracee, error) {
if err != nil {
return t, errfmt.WrapError(err)
}
// Also add all capabilities required by fallbacks
for _, fallback := range deps.GetFallbacks() {
fallbackCaps := fallback.GetDependencies().GetCapabilities()
err = caps.BaseRingAdd(fallbackCaps.GetBase()...)
if err != nil {
return t, errfmt.WrapError(err)
}
err = caps.BaseRingAdd(fallbackCaps.GetEBPF()...)
if err != nil {
return t, errfmt.WrapError(err)
}
}
}
}

Expand Down

0 comments on commit 797b221

Please sign in to comment.