seccomp

package
v0.0.0-...-e70be16 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// SeccompDeprecatedAnnotations occurs when deprecated seccomp annotations are present
	SeccompDeprecatedAnnotations = "SeccompDeprecatedAnnotations"
	// SeccompProfileMissing occurs when there are no seccomp profiles (pod nor container level)
	SeccompProfileMissing = "SeccompProfileMissing"
	// SeccompDisabledPod occurs when the pod-level seccomp profile is set to a value which disables seccomp
	SeccompDisabledPod = "SeccompDisabledPod"
	// SeccompDisabledContainer occurs when the container-level seccomp profile is set to a value which disables seccomp
	SeccompDisabledContainer = "SeccompDisabledContainer"
)
View Source
const (
	// ProfileRuntimeDefault represents the default seccomp profile used by container runtime
	ProfileRuntimeDefault = apiv1.SeccompProfileTypeRuntimeDefault
	// ProfileLocalhost represents the localhost seccomp profile used by container runtime
	ProfileLocalhost = apiv1.SeccompProfileTypeLocalhost
	// ContainerAnnotationKeyPrefix represents the key of a seccomp profile applied to one container of a pod
	ContainerAnnotationKeyPrefix = apiv1.SeccompContainerAnnotationKeyPrefix
	// PodAnnotationKey represents the key of a seccomp profile applied to all containers of a pod
	PodAnnotationKey = apiv1.SeccompPodAnnotationKey
)
View Source
const Name = "seccomp"

Variables

This section is empty.

Functions

This section is empty.

Types

type ByRemovingSeccompProfileInContainer

type ByRemovingSeccompProfileInContainer struct {
	// contains filtered or unexported fields
}

func (*ByRemovingSeccompProfileInContainer) Apply

func (pending *ByRemovingSeccompProfileInContainer) Apply(resource k8s.Resource) []k8s.Resource

func (*ByRemovingSeccompProfileInContainer) Plan

type BySettingSeccompProfile

type BySettingSeccompProfile struct {
	// contains filtered or unexported fields
}

func (*BySettingSeccompProfile) Apply

func (pending *BySettingSeccompProfile) Apply(resource k8s.Resource) []k8s.Resource

func (*BySettingSeccompProfile) Plan

func (pending *BySettingSeccompProfile) Plan() string

type BySettingSeccompProfileInContainer

type BySettingSeccompProfileInContainer struct {
	// contains filtered or unexported fields
}

func (*BySettingSeccompProfileInContainer) Apply

func (pending *BySettingSeccompProfileInContainer) Apply(resource k8s.Resource) []k8s.Resource

func (*BySettingSeccompProfileInContainer) Plan

type Seccomp

type Seccomp struct{}

Seccomp implements Auditable

func New

func New() *Seccomp

func (*Seccomp) Audit

func (a *Seccomp) Audit(resource k8s.Resource, _ []k8s.Resource) ([]*kubeaudit.AuditResult, error)

Audit checks that Seccomp is enabled for all containers

Jump to

Keyboard shortcuts

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