Files
runc/libcontainer/userns/userns.go
T
Sebastiaan van Stijn d8e9ed3e08 libcontainer/userns: simplify, and separate from "user" package.
This makes libcontainer/userns self-dependent, largely returning to
the original implementation from lxc. The `uiMapInUserNS` is kept as
a separate function for unit-testing and fuzzing.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2023-09-04 10:57:48 +02:00

5 lines
135 B
Go

package userns
// RunningInUserNS detects whether we are currently running in a user namespace.
var RunningInUserNS = runningInUserNS