diff options
author | Nalin Dahyabhai <nalin@redhat.com> | 2020-10-09 15:50:53 -0400 |
---|---|---|
committer | Nalin Dahyabhai <nalin@redhat.com> | 2020-10-09 15:54:03 -0400 |
commit | b14bffd2aa182459c954cfa995cd53d36e11320f (patch) | |
tree | e1d655eb2a57f1b58870241fc33929478599a8f9 /pkg | |
parent | cec240375d6dceb09c705d6d55e67aeff037327f (diff) | |
download | podman-b14bffd2aa182459c954cfa995cd53d36e11320f.tar.gz podman-b14bffd2aa182459c954cfa995cd53d36e11320f.tar.bz2 podman-b14bffd2aa182459c954cfa995cd53d36e11320f.zip |
pkg/spec: fix a confusing error message
When we try, but fail, to load the default seccomp profile, say that,
instead of suggesting that we tried to load a profile with no name.
Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/spec/config_linux_cgo.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/spec/config_linux_cgo.go b/pkg/spec/config_linux_cgo.go index bc8fc4e29..d0891b574 100644 --- a/pkg/spec/config_linux_cgo.go +++ b/pkg/spec/config_linux_cgo.go @@ -39,7 +39,7 @@ func getSeccompConfig(config *SecurityConfig, configSpec *spec.Spec) (*spec.Linu logrus.Debug("Loading default seccomp profile") seccompConfig, err = goSeccomp.GetDefaultProfile(configSpec) if err != nil { - return nil, errors.Wrapf(err, "loading seccomp profile (%s) failed", config.SeccompProfilePath) + return nil, errors.Wrapf(err, "loading default seccomp profile failed") } } |