Remove "PatchAndLoad" stub as it's not used without seccomp enabled

This function is called by `InitSeccomp`, but only when compiled
with seccomp (and cgo) enabled, so should not be needed for other
situations.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2021-02-01 14:30:17 +01:00
parent 6c85f6389e
commit c4bc3b080e
@@ -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
}