"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "daemon/graphdriver/overlayutils/overlayutils.go" between
moby-20.10.7.tar.gz and moby-20.10.8.tar.gz

About: Moby is a framework to assemble specialized container systems (formerly project name Docker; see here to clarify the relationship between the projects).

overlayutils.go  (moby-20.10.7):overlayutils.go  (moby-20.10.8)
skipping to change at line 40 skipping to change at line 40
return graphdriver.NotSupportedError(msg) return graphdriver.NotSupportedError(msg)
} }
// SupportsOverlay checks if the system supports overlay filesystem // SupportsOverlay checks if the system supports overlay filesystem
// by performing an actual overlay mount. // by performing an actual overlay mount.
// //
// checkMultipleLowers parameter enables check for multiple lowerdirs, // checkMultipleLowers parameter enables check for multiple lowerdirs,
// which is required for the overlay2 driver. // which is required for the overlay2 driver.
func SupportsOverlay(d string, checkMultipleLowers bool) error { func SupportsOverlay(d string, checkMultipleLowers bool) error {
// We can't rely on go-selinux.GetEnabled() to detect whether SELinux is
enabled,
// because RootlessKit doesn't mount /sys/fs/selinux in the child: https:
//github.com/rootless-containers/rootlesskit/issues/94
// So we check $_DOCKERD_ROOTLESS_SELINUX, which is set by dockerd-rootle
ss.sh .
if os.Getenv("_DOCKERD_ROOTLESS_SELINUX") == "1" {
// Kernel 5.11 introduced support for rootless overlayfs, but inc
ompatible with SELinux,
// so fallback to fuse-overlayfs.
// https://github.com/moby/moby/issues/42333
return errors.New("overlay is not supported for Rootless with SEL
inux")
}
td, err := ioutil.TempDir(d, "check-overlayfs-support") td, err := ioutil.TempDir(d, "check-overlayfs-support")
if err != nil { if err != nil {
return err return err
} }
defer func() { defer func() {
if err := os.RemoveAll(td); err != nil { if err := os.RemoveAll(td); err != nil {
logrus.Warnf("Failed to remove check directory %v: %v", t d, err) logrus.Warnf("Failed to remove check directory %v: %v", t d, err)
} }
}() }()
 End of changes. 1 change blocks. 
0 lines changed or deleted 15 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)