Documentation ¶
Index ¶
- func DisableSecOpt() []string
- func DupSecOpt(src string) []string
- func FormatMountLabel(src string, mountLabel string) string
- func GetPidLabel(pid int) (string, error)
- func Init()
- func InitLabels(mcsdir string, options []string) (string, string, error)
- func Relabel(path string, fileLabel string, relabel string) error
- func ReserveLabel(label string) error
- func SetFileCreateLabel(fileLabel string) error
- func SetFileLabel(path string, fileLabel string) error
- func SetProcessLabel(processLabel string) error
- func UnreserveLabel(label string) error
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 ¶
DupSecOpt takes an process label and returns security options that can be used to set duplicate labels on future container processes
func FormatMountLabel ¶
func GetPidLabel ¶
func InitLabels ¶
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 ReserveLabel ¶
func SetFileCreateLabel ¶
func SetFileLabel ¶
func SetProcessLabel ¶
func UnreserveLabel ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.