Skip to content

Commit

Permalink
Merge pull request containers#17371 from openshift-cherrypick-robot/c…
Browse files Browse the repository at this point in the history
…herry-pick-17356-to-v4.4

[v4.4] oci: bind mount /sys with --userns=(auto|pod:)
  • Loading branch information
openshift-merge-robot authored Feb 8, 2023
2 parents 5571faa + 1d76a16 commit f5670f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/specgen/generate/oci_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit f5670f0

Please sign in to comment.