From a10820a78bf38c0975c49b88195d288c3998243e Mon Sep 17 00:00:00 2001 From: Michael Crosby Date: Wed, 16 Jul 2014 16:24:28 -0700 Subject: [PATCH] Add linux build tags for selinux Docker-DCO-1.1-Signed-off-by: Michael Crosby (github: crosbymichael) --- selinux/selinux.go | 2 ++ selinux/selinux_test.go | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/selinux/selinux.go b/selinux/selinux.go index 8dbdbdbc..55da87ff 100644 --- a/selinux/selinux.go +++ b/selinux/selinux.go @@ -1,3 +1,5 @@ +// +build linux + package selinux import ( diff --git a/selinux/selinux_test.go b/selinux/selinux_test.go index 40ed70d1..34c34974 100644 --- a/selinux/selinux_test.go +++ b/selinux/selinux_test.go @@ -1,9 +1,12 @@ +// +build linux + package selinux_test import ( - "github.com/docker/libcontainer/selinux" "os" "testing" + + "github.com/docker/libcontainer/selinux" ) func testSetfilecon(t *testing.T) {