From 50cc71ca29aa898f037d8b1ccf45578b38677bdf Mon Sep 17 00:00:00 2001 From: Michael Crosby Date: Mon, 28 Apr 2014 14:36:04 -0700 Subject: [PATCH] Update process labels to be set at create not start Docker-DCO-1.1-Signed-off-by: Michael Crosby (github: crosbymichael) --- label/label_selinux.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/label/label_selinux.go b/label/label_selinux.go index 9361a71..926f7ff 100644 --- a/label/label_selinux.go +++ b/label/label_selinux.go @@ -4,8 +4,9 @@ package label import ( "fmt" - "github.com/dotcloud/docker/pkg/selinux" "strings" + + "github.com/dotcloud/docker/pkg/selinux" ) func GenLabels(options string) (string, string, error) { @@ -76,6 +77,7 @@ func Init() { selinux.SelinuxEnabled() } -func ReserveLabel(label string) { +func ReserveLabel(label string) error { selinux.ReserveLabel(label) + return nil }