Skip to content

Commit

Permalink
Fix seccomp profile on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
nwneisen committed Sep 27, 2023
1 parent e622913 commit 444dcb2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/helpers_unsupported.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
4 changes: 2 additions & 2 deletions core/security_context_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 444dcb2

Please sign in to comment.