Documentation
¶
Index ¶
- type CgroupSink
- type OpenExecManager
- func (l *OpenExecManager) CollectObservations(ctx context.Context) ([]runtimeevent.Event, error)
- func (l *OpenExecManager) PodDeleted(uid string) error
- func (l *OpenExecManager) PodEvent(pod corev1.Pod, nsLabels map[string]string, ...) error
- func (l *OpenExecManager) RuntimePolicyEvent(compiledRb *compiler.EvaluationResult, eventType string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CgroupSink ¶
CgroupSink is an observation-only kernel source that must see events from the same pods the exec policies select, and from no others.
type OpenExecManager ¶
type OpenExecManager struct {
// contains filtered or unexported fields
}
func NewOpenExecManager ¶
func NewOpenExecManager(logger logr.Logger, status runtimeevent.PolicyStatusRecorder, onLoss runtimeevent.LossFunc, lsm bool, cgroupSinks ...CgroupSink) (*OpenExecManager, error)
NewOpenExecManager loads and attaches the dispatcher for each hook the manager enforces through, along with the executor each one tail-calls. Policies are later represented as maps that those executors scan during events.
func (*OpenExecManager) CollectObservations ¶
func (l *OpenExecManager) CollectObservations(ctx context.Context) ([]runtimeevent.Event, error)
CollectObservations drains the per-cgroup path counters of every enforcer from open/exec. Reading drains events, and hence reported counts represent events since the last drain.
func (*OpenExecManager) PodDeleted ¶
func (l *OpenExecManager) PodDeleted(uid string) error
PodDeleted removes the pod's cgroups from every attached program and drops its bookkeeping.
func (*OpenExecManager) PodEvent ¶
func (l *OpenExecManager) PodEvent(pod corev1.Pod, nsLabels map[string]string, cgInfos []*containers.ContainerCgroupInfo, eventType string) error
func (*OpenExecManager) RuntimePolicyEvent ¶
func (l *OpenExecManager) RuntimePolicyEvent(compiledRb *compiler.EvaluationResult, eventType string) error
Click to show internal directories.
Click to hide internal directories.