mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
9e2eb0f1cc
On Fedora and RHEL we ship selinux-enabled flag in the docker.service config, but if people setup the /var/lib/docker as btrfs and disable SELinux, we should not block the daemon from running. Docker-DCO-1.1-Signed-off-by: Dan Walsh <dwalsh@redhat.com> (github: rhatdan)
17 lines
279 B
Go
17 lines
279 B
Go
// +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()
|
|
}
|