diff --git a/core/helpers_unsupported.go b/core/helpers_unsupported.go index 6eb1fa7a4..70c2d50a3 100644 --- a/core/helpers_unsupported.go +++ b/core/helpers_unsupported.go @@ -34,7 +34,7 @@ func DefaultMemorySwap() int64 { } func (ds *dockerService) getSecurityOpts( - seccompProfile string, + seccompProfile *runtimeapi.SecurityProfile, separator rune, ) ([]string, error) { logrus.Info("getSecurityOpts is unsupported in this build") diff --git a/core/security_context_windows.go b/core/security_context_windows.go index 71f93ed6b..ed4087d3a 100644 --- a/core/security_context_windows.go +++ b/core/security_context_windows.go @@ -26,10 +26,10 @@ import ( ) func (ds *dockerService) getSecurityOpts( - seccompProfile string, + seccompProfile *v1.SecurityProfile, separator rune, ) ([]string, error) { - if seccompProfile != "" { + if seccompProfile != nil { logrus.Info("seccomp annotations are not supported on windows") } return nil, nil