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 29875ad commit a8059b5
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 a8059b5

Please sign in to comment.