Documentation ¶
Overview ¶
Package selinux contains selinux utility functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SelinuxContextRunner ¶ added in v1.3.0
type SelinuxContextRunner interface { SetContext(dir, context string) error Getfilecon(path string) (string, error) }
SelinuxContextRunner knows how to chcon of a directory and how to get the selinux context of a file.
func NewSelinuxContextRunner ¶ added in v1.3.0
func NewSelinuxContextRunner() SelinuxContextRunner
NewSelinuxContextRunner returns a new chconRunner.
Click to show internal directories.
Click to hide internal directories.