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:
parent
4893ecc112
commit
3875be9830
4 changed files with 17 additions and 17 deletions
|
@ -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()
|
|
||||||
}
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
// +build linux
|
||||||
|
|
||||||
package daemon
|
package daemon
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|
|
@ -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
|
Loading…
Reference in a new issue