Skip to content

Commit

Permalink
merge branch 'pr-2780'
Browse files Browse the repository at this point in the history
Sebastiaan van Stijn (1):
  Remove "PatchAndLoad" stub as it's not used without seccomp enabled

LGTMs: @kolyshkin @cyphar
Closes #2780
  • Loading branch information
cyphar committed Feb 2, 2021
2 parents cc988c1 + c4bc3b0 commit 7e3c3e8
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions libcontainer/seccomp/patchbpf/enosys_unsupported.go
Original file line number Diff line number Diff line change
@@ -1,18 +1,3 @@
// +build !linux !cgo !seccomp

package patchbpf

import (
"errors"

"github.com/opencontainers/runc/libcontainer/configs"

libseccomp "github.com/seccomp/libseccomp-golang"
)

func PatchAndLoad(config *configs.Seccomp, filter *libseccomp.ScmpFilter) error {
if config != nil {
return errors.New("cannot patch and load seccomp filter without runc seccomp support")
}
return nil
}

0 comments on commit 7e3c3e8

Please sign in to comment.