Fix building on non linux platforms
Currently this code is not building correctly on darwin builds. This PR handles non linux platforms correctly. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
parent
afb2659b2a
commit
70d93c6deb
|
|
@ -1,4 +1,4 @@
|
||||||
// +build !seccomp
|
// +build !linux !seccomp
|
||||||
|
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
|
@ -38,3 +38,9 @@ func LoadProfileFromConfig(config *Seccomp, specgen *specs.Spec) (*specs.LinuxSe
|
||||||
func IsEnabled() bool {
|
func IsEnabled() bool {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// IsSupported returns true if the system has been configured to support
|
||||||
|
// seccomp.
|
||||||
|
func IsSupported() bool {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
// +build !windows
|
// +build linux,seccomp
|
||||||
|
|
||||||
package seccomp
|
package seccomp
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
// +build seccomp
|
||||||
|
|
||||||
package seccomp
|
package seccomp
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue