]> git.baikalelectronics.ru Git - kernel.git/commit
ovl: lookup: do getxattr with mounter's permission
authorMiklos Szeredi <mszeredi@redhat.com>
Fri, 16 Sep 2016 12:12:11 +0000 (14:12 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Fri, 16 Sep 2016 12:12:11 +0000 (14:12 +0200)
commit517c84172c9356ce19d6396c42f109f2434503ea
treeab544e0b8c1c33dba94d79edeb0be310a51499ca
parent97bfcdee804c51a91de8e3076a4b2374e0e277ce
ovl: lookup: do getxattr with mounter's permission

The getxattr() in ovl_is_opaquedir() was missed when converting all
operations on underlying fs to be done under mounter's permission.

This patch fixes this by moving the ovl_override_creds()/revert_creds() out
from ovl_lookup_real() to ovl_lookup().

Also convert to using vfs_getxattr() instead of directly calling
i_op->getxattr().

Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/overlayfs/super.c