diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2019-10-29 13:33:44 -0400 |
---|---|---|
committer | Nalin Dahyabhai <nalin@redhat.com> | 2019-10-29 13:43:45 -0400 |
commit | 66c126d6dee178f96f8a120f13372802d46ea9b5 (patch) | |
tree | 14bbd3c7fd16993234d482caa1f8b78e4954a106 /pkg | |
parent | 248bb61b14a3f0d4e1d244eff85b30f48554a6a8 (diff) | |
download | podman-66c126d6dee178f96f8a120f13372802d46ea9b5.tar.gz podman-66c126d6dee178f96f8a120f13372802d46ea9b5.tar.bz2 podman-66c126d6dee178f96f8a120f13372802d46ea9b5.zip |
Set default seccomp.json file for podman play kube
Currently podman play kube is not using the system default seccomp.json file.
This PR will use the default or override location for podman play.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/adapter/pods.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/adapter/pods.go b/pkg/adapter/pods.go index 9be294929..d8d5b884f 100644 --- a/pkg/adapter/pods.go +++ b/pkg/adapter/pods.go @@ -713,6 +713,11 @@ func kubeContainerToCreateConfig(ctx context.Context, containerYAML v1.Container } } } + var err error + containerConfig.SeccompProfilePath, err = libpod.DefaultSeccompPath() + if err != nil { + return nil, err + } containerConfig.Command = []string{} if imageData != nil && imageData.Config != nil { |