mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
9b60a93cf3
The userns package was moved to the moby/sys/userns module
at commit 3778ae603c.
This patch deprecates the old location, and adds it as an alias
for the moby/sys/userns package.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
14 lines
370 B
Go
14 lines
370 B
Go
// Deprecated: use github.com/moby/sys/userns
|
|
package userns
|
|
|
|
import "github.com/moby/sys/userns"
|
|
|
|
// RunningInUserNS detects whether we are currently running in a Linux
|
|
// user namespace and memoizes the result. It returns false on non-Linux
|
|
// platforms.
|
|
//
|
|
// Deprecated: use [userns.RunningInUserNS].
|
|
func RunningInUserNS() bool {
|
|
return userns.RunningInUserNS()
|
|
}
|