selinux

package
v0.39.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var POLICY_FILES = []string{"virt_launcher"}

Functions

This section is empty.

Types

type ContextExecutor added in v0.39.0

type ContextExecutor struct {
	// contains filtered or unexported fields
}

func NewContextExecutor added in v0.39.0

func NewContextExecutor(pid int, cmd *exec.Cmd) (*ContextExecutor, error)

func (ContextExecutor) Execute added in v0.39.0

func (ce ContextExecutor) Execute() error

type SELinux

type SELinux interface {
	InstallPolicy(dir string) (err error)
	Mode() string
}

func NewSELinux

func NewSELinux() (SELinux, bool, error)

type SELinuxImpl

type SELinuxImpl struct {
	Paths []string
	// contains filtered or unexported fields
}

func (*SELinuxImpl) InstallPolicy added in v0.21.0

func (se *SELinuxImpl) InstallPolicy(dir string) (err error)

func (*SELinuxImpl) IsPresent

func (se *SELinuxImpl) IsPresent() (present bool, mode string, err error)

func (*SELinuxImpl) Mode added in v0.32.0

func (se *SELinuxImpl) Mode() string

Jump to

Keyboard shortcuts

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