MCPcopy Create free account
hub / github.com/rabbitstack/fibratus / ExcludeImage

Method ExcludeImage

pkg/config/eventsource.go:208–216  ·  view source on GitHub ↗

ExcludeImage determines whether the process generating event is present in the list of excluded images. If the hit occurs, the event associated with the process is dropped.

(ps *pstypes.PS)

Source from the content-addressed store, hash-verified

206// list of excluded images. If the hit occurs, the event associated with the process
207// is dropped.
208func (c *EventSourceConfig) ExcludeImage(ps *pstypes.PS) bool {
209 if len(c.excludedImages) == 0 {
210 return false
211 }
212 if ps == nil {
213 return false
214 }
215 return c.excludedImages[ps.Name]
216}

Callers 2

TestEventSourceConfigFunction · 0.80
ProcessEventMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestEventSourceConfigFunction · 0.64