diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-12-22 10:23:58 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-22 10:23:58 -0500 |
commit | 2d8b80232d81e65ae19f8709e48f4723f6e19b93 (patch) | |
tree | f72eacef4d2725be9d3c3c44d4fff6e433371ce0 /libpod/define/info.go | |
parent | 182646b01a4544902c9fdf9326889a0ced7d9a8e (diff) | |
parent | 04b43ccf64dd5166539743b44a95c9921ddc8a9f (diff) | |
download | podman-2d8b80232d81e65ae19f8709e48f4723f6e19b93.tar.gz podman-2d8b80232d81e65ae19f8709e48f4723f6e19b93.tar.bz2 podman-2d8b80232d81e65ae19f8709e48f4723f6e19b93.zip |
Merge pull request #8799 from rhatdan/selinux
Add Security information to podman info
Diffstat (limited to 'libpod/define/info.go')
-rw-r--r-- | libpod/define/info.go | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/libpod/define/info.go b/libpod/define/info.go index f0e05801c..00146da48 100644 --- a/libpod/define/info.go +++ b/libpod/define/info.go @@ -12,6 +12,15 @@ type Info struct { } //HostInfo describes the libpod host +type SecurityInfo struct { + AppArmorEnabled bool `json:"apparmorEnabled"` + DefaultCapabilities string `json:"capabilities"` + Rootless bool `json:"rootless"` + SECCOMPEnabled bool `json:"seccompEnabled"` + SELinuxEnabled bool `json:"selinuxEnabled"` +} + +//HostInfo describes the libpod host type HostInfo struct { Arch string `json:"arch"` BuildahVersion string `json:"buildahVersion"` @@ -29,8 +38,8 @@ type HostInfo struct { OCIRuntime *OCIRuntimeInfo `json:"ociRuntime"` OS string `json:"os"` RemoteSocket *RemoteSocket `json:"remoteSocket,omitempty"` - Rootless bool `json:"rootless"` RuntimeInfo map[string]interface{} `json:"runtimeInfo,omitempty"` + Security SecurityInfo `json:"security"` Slirp4NetNS SlirpInfo `json:"slirp4netns,omitempty"` SwapFree int64 `json:"swapFree"` SwapTotal int64 `json:"swapTotal"` |