mirror of
https://github.com/containers/podman.git
synced 2025-12-02 02:58:03 +08:00
Start using github.com/seccomp/containers-golang
User newer seccomp bindings from the seccomp upstream Signed-off-by: Daniel J Walsh <dwalsh@redhat.com> Closes: #1021 Approved by: giuseppe
This commit is contained in:
committed by
Atomic Bot
parent
c09bbe8e06
commit
810f2b6061
24
vendor/github.com/seccomp/containers-golang/seccomp_unsupported.go
generated
vendored
Normal file
24
vendor/github.com/seccomp/containers-golang/seccomp_unsupported.go
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
// +build !seccomp
|
||||
|
||||
package seccomp // import "github.com/seccomp/containers-golang"
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/opencontainers/runtime-spec/specs-go"
|
||||
)
|
||||
|
||||
// DefaultProfile returns a nil pointer on unsupported systems.
|
||||
func DefaultProfile() *Seccomp {
|
||||
return nil
|
||||
}
|
||||
|
||||
// LoadProfile returns an error on unsuppored systems
|
||||
func LoadProfile(body string, rs *specs.Spec) (*specs.LinuxSeccomp, error) {
|
||||
return nil, fmt.Errorf("Seccomp not supported on this platform")
|
||||
}
|
||||
|
||||
// GetDefaultProfile returns an error on unsuppored systems
|
||||
func GetDefaultProfile(rs *specs.Spec) (*specs.LinuxSeccomp, error) {
|
||||
return nil, fmt.Errorf("Seccomp not supported on this platform")
|
||||
}
|
||||
Reference in New Issue
Block a user