Skip to content

The micro-VM for AI agents — light enough to embed on your laptop, elastic enough to power an agentic cloud.

825 B
Raw Blame
//go:build !linux

package privilege

import "errors"

// Supported is false outside Linux: the supervisor runs as whoever started it.
func Supported() bool { return false }

// IsLauncher is always false outside Linux.
func IsLauncher(string) bool { return false }

// AppIdentity reports no app user outside Linux.
func AppIdentity() (uid, gid int, groups []string, ok bool) {
	return defaultUID, defaultGID, nil, false
}

// Elevate is not available outside Linux.
func Elevate(string) error { return errors.New("privilege split is Linux-only") }

// Bootstrap is not available outside Linux.
func Bootstrap(string, Logf) (*Result, error) {
	return nil, errors.New("privilege split is Linux-only")
}

// Launch is not available outside Linux.
func Launch(Logf) error { return errors.New("privilege split is Linux-only") }