libcontainer: remove deprecated package "userns"

This package was marked deprecated in commit 9b60a93cf3
("libcontainer/userns: migrate to github.com/moby/sys/userns"), which
was included in runc 1.2. Users have thus had a year to migrate to
github.com/moby/sys/userns and it's okay for us to remove this wrapper
package.

Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
This commit is contained in:
Aleksa Sarai
2025-10-03 16:24:18 +10:00
parent 984b35389c
commit e4f99b5c95
2 changed files with 4 additions and 15 deletions
+4
View File
@@ -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
> おめェもボスになったんだろぉ?
-15
View File
@@ -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()
}