Merge pull request #19062 from Luminger/fix-use-gid-map-not-uid-map

Use /proc/self/gid_map as intended, not uid_map
This commit is contained in:
OpenShift Merge Robot 2023-06-30 09:46:59 -04:00 committed by GitHub
commit 82af41cf2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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
}