]> git.baikalelectronics.ru Git - kernel.git/commit
ovl: check mounter creds on underlying lookup
authorMiklos Szeredi <mszeredi@redhat.com>
Fri, 29 Jul 2016 10:05:22 +0000 (12:05 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Fri, 29 Jul 2016 10:05:22 +0000 (12:05 +0200)
commitdabf129e5ac2d1903a1d832df2fab59453e9b0fe
tree4c636a9e95f0c0baf9cc4906bca897d8daab7558
parent61100a16dc3149ad574985d8dd5c7ff3160e8435
ovl: check mounter creds on underlying lookup

The hash salting changes meant that we can no longer reuse the hash in the
overlay dentry to look up the underlying dentry.

Instead of lookup_hash(), use lookup_one_len_unlocked() and swith to
mounter's creds (like we do for all other operations later in the series).

Now the lookup_hash() export introduced in 4.6 by c896636257d2 ("vfs: add
lookup_hash() helper") is unused and can possibly be removed; its
usefulness negated by the hash salting and the idea that mounter's creds
should be used on operations on underlying filesystems.

Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Fixes: e26a7fc74731 ("vfs: make the string hashes salt the hash")
fs/overlayfs/super.c