code: func configureKernelSecuritySupport(config *config.Config, driverName string) error {
  	if config.EnableSelinuxSupport {
  		if !selinuxEnabled() {
  			logrus.Warn("Docker could not enable SELinux on the host system")
  			return nil
  		}
  
  		if driverName == "overlay" || driverName == "overlay2" {
  			// If driver is overlay or overlay2, make sure kernel
  			// supports selinux with overlay.
  			supported, err := overlaySupportsSelinux()
  			if err != nil {
  				return err
  			}
  
  			if !supported {
  				logrus.Warnf("SELinux is not supported with the %v graph driver on this kernel", driverName)
  			}
  		}
  	} else {
  		selinuxSetDisabled()
  	}
  	return nil
  }
docs: // configureKernelSecuritySupport configures and validates security support for the kernel