platform

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Backend

func Backend(options Options) (enforce.Backend, error)

Backend selects the OS enforcement backend on Linux. The selection itself — capability probing, rung choice, and the fail-closed refusal when Init() was never called — lives in internal/linux, which owns every Linux mechanism; this is only the seam the executor resolves through.

Types

type Options

type Options struct {
	Windows windows.Config
	// WindowsRestrictedRuntime is shared by every backend selected for one
	// ExecutorSet. It is deliberately separate from the elevated installation's
	// Windows.StateRoot.
	WindowsRestrictedRuntime *windows.RestrictedRuntime
}

Options contains operational backend selection settings. Policy authority remains exclusively owned by profile.Settings.

Jump to

Keyboard shortcuts

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