erofs: avoid duplicated permission check for "trusted." xattrs
authorGao Xiang <hsiangkao@redhat.com>
Tue, 11 Aug 2020 07:00:20 +0000 (15:00 +0800)
committerGao Xiang <hsiangkao@redhat.com>
Fri, 18 Sep 2020 14:11:13 +0000 (22:11 +0800)
commitd578b46db69d125a654f509bdc9091d84e924dc8
tree0d21178a564d48eb191a9a43aa1747ea4e2d174a
parent856deb866d16e29bd65952e0289066f6078af773
erofs: avoid duplicated permission check for "trusted." xattrs

Don't recheck it since xattr_permission() already
checks CAP_SYS_ADMIN capability.

Just follow 5d3ce4f70172 ("f2fs: avoid duplicated permission check for "trusted." xattrs")

Reported-by: Hongyu Jin <hongyu.jin@unisoc.com>
[ Gao Xiang: since it could cause some complex Android overlay
  permission issue as well on android-5.4+, it'd be better to
  backport to 5.4+ rather than pure cleanup on mainline. ]
Cc: <stable@vger.kernel.org> # 5.4+
Link: https://lore.kernel.org/r/20200811070020.6339-1-hsiangkao@redhat.com
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Gao Xiang <hsiangkao@redhat.com>
fs/erofs/xattr.c