diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-05-23 20:38:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-23 20:38:12 +0200 |
commit | 1dbb27365ac017a344f52e2cef3e4836b264cd4e (patch) | |
tree | 2acecb887f2c4a28d83518a8bbd2aa231fccf66f /libpod/pod_top_linux.go | |
parent | 579fd01f7df929373a6b68a4c4dda17084832db4 (diff) | |
parent | e85b33fb0403f0e75bd017aba231a906b83bd444 (diff) | |
download | podman-1dbb27365ac017a344f52e2cef3e4836b264cd4e.tar.gz podman-1dbb27365ac017a344f52e2cef3e4836b264cd4e.tar.bz2 podman-1dbb27365ac017a344f52e2cef3e4836b264cd4e.zip |
Merge pull request #3190 from giuseppe/fix-userns-psgo
rootless: fix top huser and hgroup
Diffstat (limited to 'libpod/pod_top_linux.go')
-rw-r--r-- | libpod/pod_top_linux.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libpod/pod_top_linux.go b/libpod/pod_top_linux.go index f49e28c9d..e08e5e83a 100644 --- a/libpod/pod_top_linux.go +++ b/libpod/pod_top_linux.go @@ -6,6 +6,7 @@ import ( "strconv" "strings" + "github.com/containers/libpod/pkg/rootless" "github.com/containers/psgo" ) @@ -43,7 +44,8 @@ func (p *Pod) GetPodPidInformation(descriptors []string) ([]string, error) { // filters on the data. We need to change the API here and the // varlink API to return a [][]string if we want to make use of // filtering. - output, err := psgo.JoinNamespaceAndProcessInfoByPids(pids, descriptors) + opts := psgo.JoinNamespaceOpts{FillMappings: rootless.IsRootless()} + output, err := psgo.JoinNamespaceAndProcessInfoByPidsWithOptions(pids, descriptors, &opts) if err != nil { return nil, err } |