mirror of
https://github.com/containers/podman.git
synced 2025-08-06 19:44:14 +08:00
Update vendor containers/psgo
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
3
vendor/github.com/containers/psgo/SECURITY.md
generated
vendored
Normal file
3
vendor/github.com/containers/psgo/SECURITY.md
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
## Security and Disclosure Information Policy for the psgo Project
|
||||
|
||||
The psgo Project follows the [Security and Disclosure Information Policy](https://github.com/containers/common/blob/master/SECURITY.md) for the Containers Projects.
|
4
vendor/github.com/containers/psgo/psgo.go
generated
vendored
4
vendor/github.com/containers/psgo/psgo.go
generated
vendored
@ -847,7 +847,7 @@ func processHPID(p *process.Process, ctx *psContext) (string, error) {
|
||||
func processHUSER(p *process.Process, ctx *psContext) (string, error) {
|
||||
if hp := findHostProcess(p, ctx); hp != nil {
|
||||
if ctx.opts != nil && len(ctx.opts.UIDMap) > 0 {
|
||||
return findID(p.Status.Uids[1], ctx.opts.UIDMap, process.LookupUID, "/proc/sys/fs/overflowuid")
|
||||
return findID(hp.Status.Uids[1], ctx.opts.UIDMap, process.LookupUID, "/proc/sys/fs/overflowuid")
|
||||
}
|
||||
return hp.Huser, nil
|
||||
}
|
||||
@ -860,7 +860,7 @@ func processHUSER(p *process.Process, ctx *psContext) (string, error) {
|
||||
func processHGROUP(p *process.Process, ctx *psContext) (string, error) {
|
||||
if hp := findHostProcess(p, ctx); hp != nil {
|
||||
if ctx.opts != nil && len(ctx.opts.GIDMap) > 0 {
|
||||
return findID(p.Status.Gids[1], ctx.opts.GIDMap, process.LookupGID, "/proc/sys/fs/overflowgid")
|
||||
return findID(hp.Status.Gids[1], ctx.opts.GIDMap, process.LookupGID, "/proc/sys/fs/overflowgid")
|
||||
}
|
||||
return hp.Hgroup, nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user