selinux

package
v0.30.1 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

This section is empty.

Types

type SELinux

type SELinux interface {
	Label(dir string, label string) (err error)
	IsLabeled(dir string) (labeled bool, err error)
	Restore(dir string) (err error)
	InstallPolicy(dir string) (err error)
}

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) IsLabeled

func (se *SELinuxImpl) IsLabeled(dir string) (bool, error)

IsLabeled verifies if the directory already labeled

func (*SELinuxImpl) IsPermissive added in v0.22.0

func (se *SELinuxImpl) IsPermissive() (present bool, err error)

func (*SELinuxImpl) IsPresent

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

func (*SELinuxImpl) Label

func (se *SELinuxImpl) Label(label string, dir string) error

Label sets selinux label on the directory

func (*SELinuxImpl) Restore

func (se *SELinuxImpl) Restore(dir string) error

Restore restores selinux labels on the directory

Jump to

Keyboard shortcuts

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