Merge pull request #4911 from cyphar/1.4-remove-libct-userns

This commit is contained in:
lfbzhm
2025-10-04 22:08:50 +08:00
committed by GitHub
2 changed files with 4 additions and 13 deletions
+4
View File
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased 1.4.z]
### 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
> おめェもボスになったんだろぉ?
-13
View File
@@ -1,13 +0,0 @@
// 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()
}