package selinux

import "github.com/docker/docker/pkg/selinux"

Index

Constants

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

Functions

func CopyLevel

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

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 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

Source Files

selinux.go

Version
v0.10.0
Published
Apr 8, 2014
Platform
linux/amd64
Imports
12 packages
Last checked
13 minutes ago

Tools for package owners.