linux/fs/overlayfs
Miklos Szeredi 521484639e ovl: fix race in private xattr checks
Xattr operations can race with copy up.  This does not matter as long as
we consistently fiter out "trunsted.overlay.opaque" attribute on upper
directories.

Previously we checked parent against OVL_PATH_MERGE.  This is too general,
and prone to race with copy-up.  I.e. we found the parent to be on the
lower layer but ovl_dentry_real() would return the copied-up dentry,
possibly with the "opaque" attribute.

So instead use ovl_path_real() and decide to filter the attributes based on
the actual type of the dentry we'll use.

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
2014-11-20 16:40:00 +01:00
..
copy_up.c overlay filesystem 2014-10-24 00:14:38 +02:00
dir.c ovl: fix remove/copy-up race 2014-11-20 16:39:59 +01:00
inode.c ovl: fix race in private xattr checks 2014-11-20 16:40:00 +01:00
Kconfig ovl: rename filesystem type to "overlay" 2014-11-20 16:39:59 +01:00
Makefile ovl: rename filesystem type to "overlay" 2014-11-20 16:39:59 +01:00
overlayfs.h overlay filesystem 2014-10-24 00:14:38 +02:00
readdir.c ovl: don't poison cursor 2014-11-05 08:49:38 -05:00
super.c ovl: rename filesystem type to "overlay" 2014-11-20 16:39:59 +01:00