Merge pull request #17356 from giuseppe/improve-can-mount-sys

oci: bind mount /sys with --userns=(auto|pod:)
This commit is contained in:
OpenShift Merge Robot authored and GitHub committed 2023-02-06 10:51:16 +01:00
commit 26d7efe19c
1 file changed
+1 -1
+1 -1
View File
@@ -83,7 +83,7 @@ func SpecGenToOCI(ctx context.Context, s *specgen.SpecGenerator, rt *libpod.Runt
addCgroup := true
isRootless := rootless.IsRootless()
isNewUserns := s.UserNS.IsContainer() || s.UserNS.IsPath() || s.UserNS.IsPrivate()
isNewUserns := s.UserNS.IsContainer() || s.UserNS.IsPath() || s.UserNS.IsPrivate() || s.UserNS.IsPod() || s.UserNS.IsAuto()
canMountSys := canMountSys(isRootless, isNewUserns, s)