Skip to content

Conversation

@vrothberg
Copy link
Member

Add two new descriptors:

  • groups for supplementary groups inside the container
  • hgroups for the counterpart on the host

Example:

podman (main) $ ./bin/podman top -l pid,hpid,group,hgroup,groups,hgroups
PID         HPID        GROUP       HGROUP      GROUPS                                                        HGROUPS
1           92536       root        1000        root,bin,daemon,sys,adm,disk,wheel,floppy,dialout,tape,video  1000,100000,100001,100002,100003,100005,100009,100010,100019,100025,100026

Closes: #87
Signed-off-by: Valentin Rothberg rothberg@redhat.com

@rhatdan @giuseppe PTAL

Add two new descriptors:
* `groups` for supplementary groups inside the container
* `hgroups` for the counterpart on the host

Example:

```
podman (main) $ ./bin/podman top -l pid,hpid,group,hgroup,groups,hgroups
PID         HPID        GROUP       HGROUP      GROUPS                                                        HGROUPS
1           92536       root        1000        root,bin,daemon,sys,adm,disk,wheel,floppy,dialout,tape,video  1000,100000,100001,100002,100003,100005,100009,100010,100019,100025,100026
```

Closes: containers#87
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Copy link
Member

@giuseppe giuseppe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rhatdan
Copy link
Member

rhatdan commented Sep 20, 2021

LGTM
Nice work @vrothberg this will come in handy for explaining what is going on in a rootless container.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

support listing secondary groups

3 participants