1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Windows: Tidy up daemon\utils*.go

Signed-off-by: John Howard <jhoward@microsoft.com>
This commit is contained in:
John Howard 2015-07-09 18:47:32 -07:00
parent 4893ecc112
commit 3875be9830
4 changed files with 17 additions and 17 deletions

View file

@ -1,17 +0,0 @@
// +build linux
package daemon
import "github.com/docker/libcontainer/selinux"
func selinuxSetDisabled() {
selinux.SetDisabled()
}
func selinuxFreeLxcContexts(label string) {
selinux.FreeLxcContexts(label)
}
func selinuxEnabled() bool {
return selinux.SelinuxEnabled()
}

View file

@ -1,3 +1,5 @@
// +build linux
package daemon package daemon
import ( import (

View file

@ -1,3 +1,5 @@
// +build linux
package daemon package daemon
import ( import (
@ -6,8 +8,21 @@ import (
"strings" "strings"
"github.com/docker/docker/runconfig" "github.com/docker/docker/runconfig"
"github.com/docker/libcontainer/selinux"
) )
func selinuxSetDisabled() {
selinux.SetDisabled()
}
func selinuxFreeLxcContexts(label string) {
selinux.FreeLxcContexts(label)
}
func selinuxEnabled() bool {
return selinux.SelinuxEnabled()
}
func mergeLxcConfIntoOptions(hostConfig *runconfig.HostConfig) ([]string, error) { func mergeLxcConfIntoOptions(hostConfig *runconfig.HostConfig) ([]string, error) {
if hostConfig == nil { if hostConfig == nil {
return nil, nil return nil, nil