selinux

package
v3.0.0-alpha.20251212 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SelinuxTargetedContextFile = selinuxTargetedPath + "/contexts/files/file_contexts"
)

Variables

This section is empty.

Functions

func ChrootedRelabel

func ChrootedRelabel(ctx context.Context, s *sys.System, rootDir string, bind map[string]string) (err error)

ChrootedRelabel relables with setfiles the given root in a chroot env. Additionaly after the first chrooted call it runs a non chrooted call to relabel any mountpoint used within the chroot.

func Relabel

func Relabel(ctx context.Context, s *sys.System, rootDir string, extraPaths ...string) error

Relabel will relabel the system if it finds the context

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL