linux/fs/overlayfs
Amir Goldstein 2cac0c00a6 ovl: get exclusive ownership on upper/work dirs
Bad things can happen if several concurrent overlay mounts try to
use the same upperdir/workdir path.

Try to get the 'inuse' advisory lock on upperdir and workdir.
Fail mount if another overlay mount instance or another user
holds the 'inuse' lock on these directories.

Note that this provides no protection for concurrent overlay
mount that use overlapping (i.e. descendant) upper/work dirs.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
2017-07-04 22:03:17 +02:00
..
copy_up.c ovl: move __upperdentry to ovl_inode 2017-07-04 22:03:16 +02:00
dir.c ovl: move __upperdentry to ovl_inode 2017-07-04 22:03:16 +02:00
inode.c ovl: move impure to ovl_inode 2017-07-04 22:03:16 +02:00
Kconfig ovl: select EXPORTFS 2017-05-15 10:53:07 +02:00
Makefile ovl: split super.c 2016-12-16 11:02:56 +01:00
namei.c ovl: move impure to ovl_inode 2017-07-04 22:03:16 +02:00
overlayfs.h vfs: introduce inode 'inuse' lock 2017-07-04 22:03:16 +02:00
ovl_entry.h ovl: get exclusive ownership on upper/work dirs 2017-07-04 22:03:17 +02:00
readdir.c ovl: proper cleanup of workdir 2016-09-01 11:11:59 +02:00
super.c ovl: get exclusive ownership on upper/work dirs 2017-07-04 22:03:17 +02:00
util.c vfs: introduce inode 'inuse' lock 2017-07-04 22:03:16 +02:00