diff options
author | Pablo Correa Gómez <ablocorrea@hotmail.com> | 2021-04-28 15:19:19 +0200 |
---|---|---|
committer | Pablo Correa Gómez <ablocorrea@hotmail.com> | 2021-04-28 15:19:48 +0200 |
commit | 18cb17ffeb33195879730b2bc83e1a2c82310e6a (patch) | |
tree | 51a1d399ad0e97bf16d02a387841ee863ba8072d /libpod/info.go | |
parent | 4ca34fce08ffa9e29d0719e3e29383e9ffdb1572 (diff) | |
download | podman-18cb17ffeb33195879730b2bc83e1a2c82310e6a.tar.gz podman-18cb17ffeb33195879730b2bc83e1a2c82310e6a.tar.bz2 podman-18cb17ffeb33195879730b2bc83e1a2c82310e6a.zip |
Use seccomp_profile as default profile if defined in containers.conf
Edits `podman info` to provide the default seccomp profile
detected in the output
Signed-off-by: Pablo Correa Gómez <ablocorrea@hotmail.com>
Diffstat (limited to 'libpod/info.go')
-rw-r--r-- | libpod/info.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libpod/info.go b/libpod/info.go index ef0c83a2a..7a28a4cf7 100644 --- a/libpod/info.go +++ b/libpod/info.go @@ -87,6 +87,12 @@ func (r *Runtime) hostInfo() (*define.HostInfo, error) { if err != nil { return nil, errors.Wrapf(err, "error getting hostname") } + + seccompProfilePath, err := DefaultSeccompPath() + if err != nil { + return nil, errors.Wrapf(err, "error getting Seccomp profile path") + } + info := define.HostInfo{ Arch: runtime.GOARCH, BuildahVersion: buildah.Version, @@ -106,6 +112,7 @@ func (r *Runtime) hostInfo() (*define.HostInfo, error) { DefaultCapabilities: strings.Join(r.config.Containers.DefaultCapabilities, ","), Rootless: rootless.IsRootless(), SECCOMPEnabled: seccomp.IsEnabled(), + SECCOMPProfilePath: seccompProfilePath, SELinuxEnabled: selinux.GetEnabled(), }, Slirp4NetNS: define.SlirpInfo{}, |