diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-04-28 15:40:30 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-28 15:40:30 -0400 |
commit | db67fedcbd1fcaf06d0d6655face5182ccd0cc87 (patch) | |
tree | f3bd173fc406903531cd451b3155720194fa2272 /libpod/info.go | |
parent | 928dce57dfb11c110801547b9852aa4f87e37bb4 (diff) | |
parent | 18cb17ffeb33195879730b2bc83e1a2c82310e6a (diff) | |
download | podman-db67fedcbd1fcaf06d0d6655face5182ccd0cc87.tar.gz podman-db67fedcbd1fcaf06d0d6655face5182ccd0cc87.tar.bz2 podman-db67fedcbd1fcaf06d0d6655face5182ccd0cc87.zip |
Merge pull request #10155 from pablofsf/fix-default-seccomp
Use seccomp_profile as default profile if defined in containers.conf
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{}, |