]> git.baikalelectronics.ru Git - kernel.git/commit
ovl: Switch to generic_removexattr
authorAndreas Gruenbacher <agruenba@redhat.com>
Mon, 22 Aug 2016 15:22:11 +0000 (17:22 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Thu, 1 Sep 2016 09:12:00 +0000 (11:12 +0200)
commita1a8ee1f85b58a8593682d11fa550c2e94029ca4
tree092d1da4ee6fb40592629de0dde82942e4dde0f6
parent78a360c845de73fe0a60e282c08af4ee6e63c698
ovl: Switch to generic_removexattr

Commit 87c4b178742b ("ovl: fix POSIX ACL setting") switches from
iop->setxattr from ovl_setxattr to generic_setxattr, so switch from
ovl_removexattr to generic_removexattr as well.  As far as permission
checking goes, the same rules should apply in either case.

While doing that, rename ovl_setxattr to ovl_xattr_set to indicate that
this is not an iop->setxattr implementation and remove the unused inode
argument.

Move ovl_other_xattr_set above ovl_own_xattr_set so that they match the
order of handlers in ovl_xattr_handlers.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Fixes: 87c4b178742b ("ovl: fix POSIX ACL setting")
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/overlayfs/dir.c
fs/overlayfs/inode.c
fs/overlayfs/overlayfs.h
fs/overlayfs/super.c