apparmor

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2017 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultApparmorProfile is the name of default apparmor profile name.
	DefaultApparmorProfile = "ocid-default"

	// ContainerAnnotationKeyPrefix is the prefix to an annotation key specifying a container profile.
	ContainerAnnotationKeyPrefix = "container.apparmor.security.beta.kubernetes.io/"

	// ProfileRuntimeDefault is he profile specifying the runtime default.
	ProfileRuntimeDefault = "runtime/default"
	// ProfileNamePrefix is the prefix for specifying profiles loaded on the node.
	ProfileNamePrefix = "localhost/"
)

Variables

This section is empty.

Functions

func EnsureDefaultApparmorProfile

func EnsureDefaultApparmorProfile() error

EnsureDefaultApparmorProfile dose nothing, when build without apparmor build tag.

func GetProfileNameFromPodAnnotations

func GetProfileNameFromPodAnnotations(annotations map[string]string, containerName string) string

GetProfileNameFromPodAnnotations dose nothing, when build without apparmor build tag.

func IsEnabled

func IsEnabled() bool

IsEnabled returns false, when build without apparmor build tag.

Types

This section is empty.

Jump to

Keyboard shortcuts

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