1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/daemon/graphdriver
Aleksa Sarai 92e45b81e0
devicemapper: remove container rootfs mountPath after umount
libdm currently has a fairly substantial DoS bug that makes certain
operations fail on a libdm device if the device has active references
through mountpoints. This is a significant problem with the advent of
mount namespaces and MS_PRIVATE, and can cause certain --volume mounts
to cause libdm to no longer be able to remove containers:

  % docker run -d --name testA busybox top
  % docker run -d --name testB -v /var/lib/docker:/docker busybox top
  % docker rm -f testA
  [fails on libdm with dm_task_run errors.]

This also solves the problem of unprivileged users being able to DoS
docker by using unprivileged mount namespaces to preseve mounts that
Docker has dropped.

Signed-off-by: Aleksa Sarai <asarai@suse.de>
2017-09-06 20:11:01 +10:00
..
aufs Add more detailed logging to aufs init 2017-08-22 14:19:03 -04:00
btrfs Update logrus to v1.0.1 2017-07-31 13:16:46 -07:00
devmapper devicemapper: remove container rootfs mountPath after umount 2017-09-06 20:11:01 +10:00
graphtest [project] change syscall to /x/sys/unix|windows 2017-07-11 08:00:32 -04:00
lcow jhoward/opengcs --> Microsoft/opengcs 2017-08-08 14:43:43 -07:00
overlay Add unconvert linter 2017-08-24 15:08:31 -04:00
overlay2 Update logrus to v1.0.1 2017-07-31 13:16:46 -07:00
overlayutils 'docker daemon' deprecation message doesn't use the new versioning scheme 2017-03-03 17:26:49 +08:00
quota Update logrus to v1.0.1 2017-07-31 13:16:46 -07:00
register LCOW: Move daemon stores to per platform 2017-06-20 19:49:52 -07:00
vfs Remove error return from RootPair 2017-06-07 11:45:33 -04:00
windows Update logrus to v1.0.1 2017-07-31 13:16:46 -07:00
zfs Update logrus to v1.0.1 2017-07-31 13:16:46 -07:00
counter.go Merge pull request #31083 from xulike666/fight-for-readability 2017-03-03 15:13:01 +01:00
driver.go Update logrus to v1.0.1 2017-07-31 13:16:46 -07:00
driver_freebsd.go Add goimports to linters. 2017-08-21 18:15:08 -04:00
driver_linux.go graphdriver: promote overlay2 over aufs 2017-08-08 10:17:37 +00:00
driver_solaris.go Update logrus to v1.0.1 2017-07-31 13:16:46 -07:00
driver_unsupported.go
driver_windows.go
fsdiff.go Update logrus to v1.0.1 2017-07-31 13:16:46 -07:00
plugin.go Add deadcode linter 2017-08-21 18:18:50 -04:00
proxy.go Let graphdrivers declare diff stream fidelity 2017-03-31 08:32:00 -07:00