From 009d2835cf444e62af0aa432b345f16227ab93cb Mon Sep 17 00:00:00 2001 From: Phil Estes Date: Thu, 3 Mar 2016 16:33:43 -0500 Subject: [PATCH] Stub RunningInUserNS for non-Linux Add a stub for non-Linux that always returns false Docker-DCO-1.1-Signed-off-by: Phil Estes (github: estesp) --- libcontainer/system/unsupported.go | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 libcontainer/system/unsupported.go diff --git a/libcontainer/system/unsupported.go b/libcontainer/system/unsupported.go new file mode 100644 index 000000000..e7cfd62b2 --- /dev/null +++ b/libcontainer/system/unsupported.go @@ -0,0 +1,9 @@ +// +build !linux + +package system + +// RunningInUserNS is a stub for non-Linux systems +// Always returns false +func RunningInUserNS() bool { + return false +}