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.
Click to show internal directories.
Click to hide internal directories.