Skip to content

Commit

Permalink
libcontainer/system: remove UIDMapInUserNS and GetParentNSeuid
Browse files Browse the repository at this point in the history
- `UIDMapInUserNS()` is not used anywhere, only internally.
- `GetParentNSeuid()` is not used by runc itself, and only used
  by a single external project

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
  • Loading branch information
thaJeztah committed Mar 22, 2021
1 parent c5e4956 commit 0787ceb
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions libcontainer/system/userns_deprecated.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,7 @@ package system

import "github.com/opencontainers/runc/libcontainer/userns"

var (
// RunningInUserNS detects whether we are currently running in a user namespace.
// Originally copied from github.com/lxc/lxd/shared/util.go
// Deprecated: use github.com/opencontainers/runc/libcontainer/userns.RunningInUserNS
RunningInUserNS = userns.RunningInUserNS

// Deprecated: use github.com/opencontainers/runc/libcontainer/userns.UIDMapInUserNS
UIDMapInUserNS = userns.RunningInUserNS

// GetParentNSeuid returns the euid within the parent user namespace
// Deprecated: use github.com/opencontainers/runc/libcontainer/userns.RunningInUserNS
GetParentNSeuid = userns.RunningInUserNS
)
// RunningInUserNS detects whether we are currently running in a user namespace.
// Originally copied from github.com/lxc/lxd/shared/util.go
// Deprecated: use github.com/opencontainers/runc/libcontainer/userns.RunningInUserNS
var RunningInUserNS = userns.RunningInUserNS

0 comments on commit 0787ceb

Please sign in to comment.