Files
runc/libcontainer/userns/userns_deprecated.go
Aleksa Sarai 627054d246 lint/revive: add package doc comments
This silences all of the "should have a package comment" lint warnings
from golangci-lint.

Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
2025-10-03 15:17:43 +10:00

16 lines
440 B
Go

// Package userns provides tools for dealing with user namespaces.
//
// 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()
}