selinux/overlay incompatible err

Signed-off-by: Sally O'Malley <somalley@redhat.com>
Upstream-commit: 04329e0b3e47e411ebf0a4ba8947be6e87014737
Component: engine
This commit is contained in:
Sally O'Malley
2015-09-02 18:52:10 -04:00
parent e62c5d4ded
commit 8925b7fcf4
+3 -3
View File
@@ -236,9 +236,9 @@ func checkSystem() error {
func configureKernelSecuritySupport(config *Config, driverName string) error {
if config.EnableSelinuxSupport {
if selinuxEnabled() {
// As Docker on btrfs and SELinux are incompatible at present, error on both being enabled
if driverName == "btrfs" {
return fmt.Errorf("SELinux is not supported with the BTRFS graph driver")
// As Docker on either btrfs or overlayFS and SELinux are incompatible at present, error on both being enabled
if driverName == "btrfs" || driverName == "overlay" {
return fmt.Errorf("SELinux is not supported with the %s graph driver", driverName)
}
logrus.Debug("SELinux enabled successfully")
} else {