Skip to content

Commit

Permalink
Merge pull request #19062 from Luminger/fix-use-gid-map-not-uid-map
Browse files Browse the repository at this point in the history
Use /proc/self/gid_map as intended, not uid_map
  • Loading branch information
openshift-merge-robot authored Jun 30, 2023
2 parents 92a22bb + 94e59bd commit 82af41c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/util/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ func GetKeepIDMapping(opts *namespaces.KeepIDUserNsOptions) (*stypes.IDMappingOp
if err != nil {
return nil, 0, 0, err
}
gids, err := rootless.ReadMappingsProc("/proc/self/uid_map")
gids, err := rootless.ReadMappingsProc("/proc/self/gid_map")
if err != nil {
return nil, 0, 0, err
}
Expand Down

0 comments on commit 82af41c

Please sign in to comment.