Documentation ¶
Index ¶
- Constants
- func Chcon(fpath string, scon string, recurse bool) error
- func CopyLevel(src, dest string) (string, error)
- func FreeLxcContexts(scon string)
- func GetLxcContexts() (processLabel string, fileLabel string)
- func Getcon() (string, error)
- func Getexeccon() (string, error)
- func Getfilecon(path string) (string, error)
- func Getfscreatecon() (string, error)
- func Getpidcon(pid int) (string, error)
- func IntToMcs(id int, catRange uint32) string
- func ReserveLabel(scon string)
- func SecurityCheckContext(val string) error
- func SelinuxEnabled() bool
- func SelinuxGetEnforce() int
- func SelinuxGetEnforceMode() int
- func SetDisabled()
- func Setexeccon(scon string) error
- func Setfilecon(path string, scon string) error
- func Setfscreatecon(scon string) error
- type SELinuxContext
Constants ¶
View Source
const ( Enforcing = 1 Permissive = 0 Disabled = -1 )
Variables ¶
This section is empty.
Functions ¶
func Chcon ¶
Change the fpath file object to the SELinux label scon. If the fpath is a directory and recurse is true Chcon will walk the directory tree setting the label
func FreeLxcContexts ¶
func FreeLxcContexts(scon string)
func GetLxcContexts ¶
func Getexeccon ¶
func Getfilecon ¶
Return the SELinux label for this path
func Getfscreatecon ¶
func ReserveLabel ¶
func ReserveLabel(scon string)
func SecurityCheckContext ¶
func SelinuxEnabled ¶
func SelinuxEnabled() bool
func SelinuxGetEnforce ¶
func SelinuxGetEnforce() int
func SelinuxGetEnforceMode ¶
func SelinuxGetEnforceMode() int
func Setexeccon ¶
func Setfilecon ¶
func Setfscreatecon ¶
Types ¶
type SELinuxContext ¶
func NewContext ¶
func NewContext(scon string) SELinuxContext
func (SELinuxContext) Get ¶
func (c SELinuxContext) Get() string
Click to show internal directories.
Click to hide internal directories.