diff options
author | Gao Xiang <hsiangkao@redhat.com> | 2020-08-11 10:00:20 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-11-01 14:45:40 +0300 |
commit | b4818cfc3f9c69142477242179de35b062d3f33e (patch) | |
tree | 9d6dd1c691043e7b0ac42d1d61428d4cc2441d1e /drivers/misc/sgi-gru/grufile.c | |
parent | 3a9e7db9a40e57eb3610d956bc330b151c68f62c (diff) | |
download | linux-b4818cfc3f9c69142477242179de35b062d3f33e.tar.xz |
erofs: avoid duplicated permission check for "trusted." xattrs
commit d578b46db69d125a654f509bdc9091d84e924dc8 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/sgi-gru/grufile.c')
0 files changed, 0 insertions, 0 deletions