userns_unsupported.go 371 B

123456789101112131415161718
  1. //go:build !linux
  2. // +build !linux
  3. package userns
  4. import "github.com/opencontainers/runc/libcontainer/user"
  5. // runningInUserNS is a stub for non-Linux systems
  6. // Always returns false
  7. func runningInUserNS() bool {
  8. return false
  9. }
  10. // uidMapInUserNS is a stub for non-Linux systems
  11. // Always returns false
  12. func uidMapInUserNS(uidmap []user.IDMap) bool {
  13. return false
  14. }