selinux

package
v1.10.5-lite1 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package selinux contains code for validating and defaulting the SELinux context of a pod according to a security policy.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SELinuxStrategy

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

SELinuxStrategy defines the interface for all SELinux constraint strategies.

func NewRunAsAny

func NewRunAsAny(options *extensions.SELinuxStrategyOptions) (SELinuxStrategy, error)

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