snapenv

package
v0.0.0-...-04c4c42 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2021 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const PreservedUnsafePrefix = "SNAP_SAVED_"

PreservedUnsafePrefix is used to escape env variables that are usually stripped out by ld.so when starting a setuid process, to preserve them through snap-confine (for classic confined snaps).

Variables

This section is empty.

Functions

func ExtendEnvForRun

func ExtendEnvForRun(env osutil.Environment, info *snap.Info)

ExtendEnvForRun extends the given environment with what is is required for snap-{confine,exec}, that means SNAP_{NAME,REVISION} etc are all set.

It ensures all SNAP_* override any pre-existing environment variables.

Types

This section is empty.

Jump to

Keyboard shortcuts

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