Versions in this module Expand all Collapse all v0 v0.1.0 Nov 12, 2022 v0.0.1 Nov 10, 2022 Changes in this version + func IsEnabled() (bool, error) — darwin/amd64, linux/amd64 + func IsEnforcing() (bool, error) — darwin/amd64, linux/amd64 + func MockIsEnabled(isEnabled func() (bool, error)) (restore func()) + func MockIsEnforcing(isEnforcing func() (bool, error)) (restore func()) + func RestoreContext(aPath string, mode RestoreMode) error — darwin/amd64, linux/amd64 + func SnapMountContext() string — darwin/amd64, linux/amd64 + func Summary() string + func VerifyPathContext(aPath string) (bool, error) — darwin/amd64, linux/amd64 + type LevelType int + const Enforcing + const Permissive + const Unsupported + func ProbedLevel() LevelType + func Status() (level LevelType, summary string) + type RestoreMode struct + Recursive bool