Update process labels to be set at create not start

Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)
This commit is contained in:
Michael Crosby 2014-04-28 14:36:04 -07:00
parent 2b713061f5
commit 50cc71ca29

View file

@ -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
}