Documentation ¶
Index ¶
- Variables
- type SELinux
- type SELinuxImpl
- func (se *SELinuxImpl) InstallPolicy(dir string) (err error)
- func (se *SELinuxImpl) IsLabeled(dir string) (bool, error)
- func (se *SELinuxImpl) IsPermissive() (present bool, err error)
- func (se *SELinuxImpl) IsPresent() (present bool, err error)
- func (se *SELinuxImpl) Label(label string, dir string) error
- func (se *SELinuxImpl) Restore(dir string) error
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 ¶
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
Click to show internal directories.
Click to hide internal directories.