blob: 31107f87295f1db6e1bbdb065fda7368e2113160 [file] [log] [blame] [edit]
// 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()
}