Skip to content

Commit f5670f0

Browse files
Merge pull request #17371 from openshift-cherrypick-robot/cherry-pick-17356-to-v4.4
[v4.4] oci: bind mount /sys with --userns=(auto|pod:)
2 parents 5571faa + 1d76a16 commit f5670f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/specgen/generate/oci_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ func SpecGenToOCI(ctx context.Context, s *specgen.SpecGenerator, rt *libpod.Runt
8383
addCgroup := true
8484

8585
isRootless := rootless.IsRootless()
86-
isNewUserns := s.UserNS.IsContainer() || s.UserNS.IsPath() || s.UserNS.IsPrivate()
86+
isNewUserns := s.UserNS.IsContainer() || s.UserNS.IsPath() || s.UserNS.IsPrivate() || s.UserNS.IsPod() || s.UserNS.IsAuto()
8787

8888
canMountSys := canMountSys(isRootless, isNewUserns, s)
8989

0 commit comments

Comments
 (0)