From 94b45310f400310af908a71f63ffcdaa504266de Mon Sep 17 00:00:00 2001 From: Jessica Frazelle Date: Mon, 28 Dec 2015 19:24:44 -0800 Subject: [PATCH] fix default profile where unsupported Signed-off-by: Jessica Frazelle --- daemon/execdriver/native/seccomp_default.go | 2 +- daemon/execdriver/native/seccomp_unsupported.go | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 daemon/execdriver/native/seccomp_unsupported.go diff --git a/daemon/execdriver/native/seccomp_default.go b/daemon/execdriver/native/seccomp_default.go index dbd00312a3..efec175e0b 100644 --- a/daemon/execdriver/native/seccomp_default.go +++ b/daemon/execdriver/native/seccomp_default.go @@ -1,4 +1,4 @@ -// +build linux +// +build linux,seccomp package native diff --git a/daemon/execdriver/native/seccomp_unsupported.go b/daemon/execdriver/native/seccomp_unsupported.go new file mode 100644 index 0000000000..b0173ecfae --- /dev/null +++ b/daemon/execdriver/native/seccomp_unsupported.go @@ -0,0 +1,9 @@ +// +build linux,!seccomp + +package native + +import "github.com/opencontainers/runc/libcontainer/configs" + +var ( + defaultSeccompProfile *configs.Seccomp +)