package selinux
import "github.com/docker/docker/pkg/selinux"
Index ¶
- Constants
- func CopyLevel(src, dest string) (string, error)
- func GetLxcContexts() (processLabel string, fileLabel string)
- func Getexeccon() (string, error)
- func Getfscreatecon() (string, error)
- func Getpidcon(pid int) (string, error)
- func IntToMcs(id int, catRange uint32) 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 ¶
const ( Enforcing = 1 Permissive = 0 Disabled = -1 )
Functions ¶
func CopyLevel ¶
func GetLxcContexts ¶
func Getexeccon ¶
func Getfscreatecon ¶
func Getpidcon ¶
func IntToMcs ¶
func SecurityCheckContext ¶
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 Setfilecon ¶
func Setfscreatecon ¶
Types ¶
type SELinuxContext ¶
func NewContext ¶
func NewContext(scon string) SELinuxContext
func (SELinuxContext) Get ¶
func (c SELinuxContext) Get() string
Source Files ¶
- Version
- v0.10.0
- Published
- Apr 8, 2014
- Platform
- linux/amd64
- Imports
- 12 packages
- Last checked
- 13 minutes ago –
Tools for package owners.