automation-tests/vendor/github.com/opencontainers/runc/libcontainer/userns/userns.go

9 lines
225 B
Go

package userns
// RunningInUserNS detects whether we are currently running in a Linux
// user namespace and memoizes the result. It returns false on non-Linux
// platforms.
func RunningInUserNS() bool {
return inUserNS()
}