From 444dcb2953b9e08c2f6e98895bc71ee8c720620b Mon Sep 17 00:00:00 2001 From: Nick Neisen Date: Wed, 27 Sep 2023 09:24:06 -0600 Subject: [PATCH] Fix seccomp profile on windows --- core/helpers_unsupported.go | 2 +- core/security_context_windows.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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