bpfenforcer

package
v0.5.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BpfEnforcer

type BpfEnforcer struct {
	TaskCreateCh     chan varmortypes.ContainerInfo
	TaskDeleteCh     chan varmortypes.ContainerInfo
	TaskDeleteSyncCh chan bool
	// contains filtered or unexported fields
}

func NewBpfEnforcer

func NewBpfEnforcer(log logr.Logger) (*BpfEnforcer, error)

NewBpfEnforcer create a BpfEnforcer, and initialize the BPF settings and resources

func (*BpfEnforcer) Close added in v0.5.5

func (enforcer *BpfEnforcer) Close()

Close close the BPF resources

func (*BpfEnforcer) DeleteBpfProfile

func (enforcer *BpfEnforcer) DeleteBpfProfile(profileName string) error

DeleteBpfProfile unload the BPF profile from kernel, then delete it from the cache

func (*BpfEnforcer) IsBpfProfileExist

func (enforcer *BpfEnforcer) IsBpfProfileExist(profileName string) bool

func (*BpfEnforcer) Run

func (enforcer *BpfEnforcer) Run(stopCh <-chan struct{})

func (*BpfEnforcer) SaveAndApplyBpfProfile

func (enforcer *BpfEnforcer) SaveAndApplyBpfProfile(profileName string, bpfContent varmor.BpfContent) error

SaveAndApplyBpfProfile save the BPF profile to the cache, and update it to the kernel for the existing BPF profile

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL