selinux

package
v0.20.1 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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

func NewSELinux

func NewSELinux() (SELinux, bool, error)

type SELinuxImpl

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

func (*SELinuxImpl) IsLabeled

func (se *SELinuxImpl) IsLabeled(dir string) (labeled 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) (err error)

func (*SELinuxImpl) Restore

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

Jump to

Keyboard shortcuts

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