selinux

package
v0.9.1-0...-a4b4448 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2014 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Enforcing  = 1
	Permissive = 0
	Disabled   = -1
)

Variables

This section is empty.

Functions

func CopyLevel

func CopyLevel(src, dest string) (string, error)

func FreeContext

func FreeContext(con string)

func GetLxcContexts

func GetLxcContexts() (processLabel string, fileLabel string)

func GetSELinuxPolicyRoot

func GetSELinuxPolicyRoot() string

func GetSelinuxMountPoint

func GetSelinuxMountPoint() string

func Getcon

func Getcon() (string, error)

func Getexeccon

func Getexeccon() (string, error)

func Getfilecon

func Getfilecon(path string) (string, error)

func Getfscreatecon

func Getfscreatecon() (string, error)

func Getpidcon

func Getpidcon(pid int) (string, error)

func IntToMcs

func IntToMcs(id int, catRange uint32) string

func ReadConfig

func ReadConfig(target string) (value string)

func SecurityCheckContext

func SecurityCheckContext(val string) error

func SelinuxEnabled

func SelinuxEnabled() bool

func SelinuxGetEnforce

func SelinuxGetEnforce() int

func SelinuxGetEnforceMode

func SelinuxGetEnforceMode() int

func Setexeccon

func Setexeccon(scon string) error

func Setfilecon

func Setfilecon(path string, scon string) error

func Setfscreatecon

func Setfscreatecon(scon string) error

Types

type SELinuxContext

type SELinuxContext map[string]string

func NewContext

func NewContext(scon string) SELinuxContext

func (SELinuxContext) Get

func (c SELinuxContext) Get() string

Jump to

Keyboard shortcuts

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