diff options
author | Miklos Szeredi <mszeredi@suse.cz> | 2014-11-20 16:40:00 +0100 |
---|---|---|
committer | Miklos Szeredi <mszeredi@suse.cz> | 2014-11-20 16:40:00 +0100 |
commit | 521484639ec19a6f1ed56de6993feb255f5f676c (patch) | |
tree | 53cad82bc4ae05b1d2d21a22a2ccde9658e5c8c7 /include/linux/soc/ti | |
parent | a105d685a8483985a01776411de191a726b48132 (diff) | |
download | linux-521484639ec19a6f1ed56de6993feb255f5f676c.tar.gz linux-521484639ec19a6f1ed56de6993feb255f5f676c.tar.bz2 linux-521484639ec19a6f1ed56de6993feb255f5f676c.zip |
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>
Diffstat (limited to 'include/linux/soc/ti')
0 files changed, 0 insertions, 0 deletions