label

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2015 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DisableSecOpt

func DisableSecOpt() []string

DisableSecOpt returns a security opt that can disable labeling support for future container processes

func DupSecOpt

func DupSecOpt(src string) []string

DupSecOpt takes an process label and returns security options that can be used to set duplicate labels on future container processes

func FormatMountLabel

func FormatMountLabel(src string, mountLabel string) string

func GenLabels

func GenLabels(options string) (string, string, error)

func GetPidLabel

func GetPidLabel(pid int) (string, error)

func Init

func Init()

func InitLabels

func InitLabels(options []string) (string, string, error)

InitLabels returns the process label and file labels to be used within the container. A list of options can be passed into this function to alter the labels.

func IsShared added in v0.0.4

func IsShared(label string) bool

IsShared checks that the label includes a "shared" mark

func Relabel

func Relabel(path string, fileLabel string, shared bool) error

func RelabelNeeded added in v0.0.5

func RelabelNeeded(label string) bool

RelabelNeeded checks whether the user requested a relabel

func ReserveLabel

func ReserveLabel(label string) error

func SetFileCreateLabel

func SetFileCreateLabel(fileLabel string) error

func SetFileLabel

func SetFileLabel(path string, fileLabel string) error

func SetProcessLabel

func SetProcessLabel(processLabel string) error

func UnreserveLabel

func UnreserveLabel(label string) error

func Validate added in v0.0.4

func Validate(label string) error

Validate checks that the label does not include unexpected options

Types

This section is empty.

Jump to

Keyboard shortcuts

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