mirror of
https://github.com/containers/podman.git
synced 2025-10-14 09:45:59 +08:00
Reveal information about container capabilities
I am often asked about the list of capabilities availabel to a container. We should be listing this data in the inspect command for effective capabilities and the bounding set. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com> Closes: #1335 Approved by: TomSweeneyRedHat
This commit is contained in:

committed by
Atomic Bot

parent
16465007d0
commit
e7fbf329c2
@ -79,6 +79,8 @@ func (c *Container) getContainerInspectData(size bool, driverData *inspect.Data)
|
||||
Name: config.Name,
|
||||
Driver: driverData.Name,
|
||||
MountLabel: config.MountLabel,
|
||||
EffectiveCaps: spec.Process.Capabilities.Effective,
|
||||
BoundingCaps: spec.Process.Capabilities.Bounding,
|
||||
ProcessLabel: spec.Process.SelinuxLabel,
|
||||
AppArmorProfile: spec.Process.ApparmorProfile,
|
||||
ExecIDs: execIDs,
|
||||
|
Reference in New Issue
Block a user