diff options
author | Miklos Szeredi <mszeredi@redhat.com> | 2016-05-11 01:16:37 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-05-11 05:58:18 +0200 |
commit | 38b78a5f18584db6fa7441e0f4531b283b0e6725 (patch) | |
tree | cdb15adf5fe5c201c87d17c7847cf07484d8a441 /arch/arm/boot/dts/omap3-n900.dts | |
parent | vfs: add lookup_hash() helper (diff) | |
download | linux-38b78a5f18584db6fa7441e0f4531b283b0e6725.tar.xz linux-38b78a5f18584db6fa7441e0f4531b283b0e6725.zip |
ovl: ignore permissions on underlying lookup
Generally permission checking is not necessary when overlayfs looks up a
dentry on one of the underlying layers, since search permission on base
directory was already checked in ovl_permission().
More specifically using lookup_one_len() causes a problem when the lower
directory lacks search permission for a specific user while the upper
directory does have search permission. Since lookups are cached, this
causes inconsistency in behavior: success depends on who did the first
lookup.
So instead use lookup_hash() which doesn't do the permission check.
Reported-by: Ignacy Gawędzki <ignacy.gawedzki@green-communications.fr>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'arch/arm/boot/dts/omap3-n900.dts')
0 files changed, 0 insertions, 0 deletions