diff --git a/CHANGELOG.md b/CHANGELOG.md index eb5cae31a..1aeb57e38 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### libcontainer API +- The deprecated `libcontainer/userns` package has been removed; use + `github.com/moby/sys/userns` instead. + ## [1.4.0-rc.1] - 2025-09-05 > おめェもボスになったんだろぉ? diff --git a/libcontainer/userns/userns_deprecated.go b/libcontainer/userns/userns_deprecated.go deleted file mode 100644 index 4d328d0f2..000000000 --- a/libcontainer/userns/userns_deprecated.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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() -}