mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user