selinux

package
v0.12.1-0...-e2fce7d Latest Latest
Warning

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

Go to latest
Published: Jun 9, 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 FreeLxcContexts

func FreeLxcContexts(scon string)

func GetLxcContexts

func GetLxcContexts() (processLabel string, fileLabel string)

func Getexeccon

func Getexeccon() (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 ReserveLabel

func ReserveLabel(scon string)

func SecurityCheckContext

func SecurityCheckContext(val string) error

func SelinuxEnabled

func SelinuxEnabled() bool

func SelinuxGetEnforce

func SelinuxGetEnforce() int

func SelinuxGetEnforceMode

func SelinuxGetEnforceMode() int

func SetDisabled

func SetDisabled()

SetDisabled disables selinux support for the package

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