kubernetes: k8s.io/kubernetes/pkg/security/podsecuritypolicy/selinux Index | Files

package selinux

import "k8s.io/kubernetes/pkg/security/podsecuritypolicy/selinux"

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

Index

Package Files

doc.go mustrunas.go runasany.go types.go

type SELinuxStrategy Uses

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 NewMustRunAs Uses

func NewMustRunAs(options *policy.SELinuxStrategyOptions) (SELinuxStrategy, error)

func NewRunAsAny Uses

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

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

Package selinux imports 8 packages (graph) and is imported by 56 packages. Updated 2018-11-09. Refresh now. Tools for package owners.