selinux

package
v0.0.0-...-7c5911e Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package selinux contains security context constraints SELinux strategy implementations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToInternalSELinuxOptions

func ToInternalSELinuxOptions(external *corev1.SELinuxOptions) (*coreapi.SELinuxOptions, error)

func ToInternalSELinuxOptionsOrDie

func ToInternalSELinuxOptionsOrDie(external *corev1.SELinuxOptions) *coreapi.SELinuxOptions

Types

type SELinuxSecurityContextConstraintsStrategy

type SELinuxSecurityContextConstraintsStrategy interface {
	// Generate creates the SELinuxOptions based on constraint rules.
	Generate(pod *coreapi.Pod, container *coreapi.Container) (*coreapi.SELinuxOptions, error)
	// Validate ensures that the specified values fall within the range of the strategy.
	Validate(fldPath *field.Path, pod *coreapi.Pod, container *coreapi.Container, options *coreapi.SELinuxOptions) field.ErrorList
}

SELinuxSecurityContextConstraintsStrategy defines the interface for all SELinux constraint strategies.

func NewRunAsAny

NewRunAsAny provides a strategy that will return the configured se linux context or nil.

Jump to

Keyboard shortcuts

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