package
0.0.0-20250312152250-ea85ec9d2454
Repository: https://github.com/snapcore/snapd.git
Documentation: pkg.go.dev

# Functions

IsEnabled checks whether SELinux is enabled.
IsEnabled checks whether SELinux is in enforcing mode.
MockIsEnabled makes the system believe a certain SELinux state is currently true.
MockIsEnforcing makes the system believe the current SELinux is currently enforcing.
ProbedLevel tells what level of SELinux enforcement is currently used.
RestoreContext restores the default SELinux context of given path.
SnapMountContext finds out the right context for mounting snaps.
Status returns the current level of SELinux support and a descriptive summary.
Summary describes SELinux status.
VerifyPathContext checks whether a given path is labeled according to its default SELinux context.

# Constants

SELinux is supported and in enforcing mode.
SELinux is supported and in permissive mode.
SELinux is not supported.

# Structs

RestoreMode configures how default path context is restored.

# Type aliases

LevelType encodes the state of SELinux support found on this system.