fix travis seccomp version

Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
Jess Frazelle 2018-03-19 23:38:05 -04:00
parent c9717525e2
commit 3fc6abf56b
4 changed files with 16 additions and 4 deletions

View file

@ -46,7 +46,7 @@ $(BUILDDIR)/$(notdir $(IMAGE)): $(BUILDDIR) $(IMAGE_DATA_FILE) *.go VERSION.txt
.PHONY: fmt
fmt: ## Verifies all files have men `gofmt`ed
@echo "+ $@"
@gofmt -s -l . | grep -v '.pb.go:' | grep -v vendor | tee /dev/stderr
@gofmt -s -l . | grep -v '.pb.go:' | grep -v vendor | grep -v bindata.go | tee /dev/stderr
.PHONY: lint
lint: ## Verifies `golint` passes

File diff suppressed because one or more lines are too long

View file

@ -1,3 +1,5 @@
// +build seccomp
package main
import (

10
seccomp_unsupported.go Normal file
View file

@ -0,0 +1,10 @@
// +build !seccomp
package main
import (
specs "github.com/opencontainers/runtime-spec/specs-go"
)
// defaultProfile defines the whitelist for the default seccomp profile.
var defaultSeccompProfile = &specs.LinuxSeccomp{}