Merge pull request #25616 from rhatdan/overlay_selinux

Linux upstream kernel Overlay file systems support SELinux
This commit is contained in:
Michael Crosby 2016-08-31 09:25:20 -07:00 коммит произвёл GitHub
Родитель ad6f5a49d5 b71cd179fa
Коммит b42ab41b8f
2 изменённых файлов: 2 добавлений и 8 удалений

Просмотреть файл

@ -599,13 +599,7 @@ func configureMaxThreads(config *Config) error {
// configureKernelSecuritySupport configures and validates security support for the kernel
func configureKernelSecuritySupport(config *Config, driverName string) error {
if config.EnableSelinuxSupport {
if selinuxEnabled() {
// As Docker on overlayFS and SELinux are incompatible at present, error on overlayfs being enabled
if driverName == "overlay" {
return fmt.Errorf("SELinux is not supported with the %s graph driver", driverName)
}
logrus.Debug("SELinux enabled successfully")
} else {
if !selinuxEnabled() {
logrus.Warn("Docker could not enable SELinux on the host system")
}
} else {

Просмотреть файл

@ -235,7 +235,7 @@ output otherwise.
Force the Docker runtime to use a specific storage driver.
**--selinux-enabled**=*true*|*false*
Enable selinux support. Default is false. SELinux does not presently support either of the overlay storage drivers.
Enable selinux support. Default is false.
**--storage-opt**=[]
Set storage driver options. See STORAGE DRIVER OPTIONS.