]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
f2fs: check cap_resource only for data blocks
authorJaegeuk Kim <jaegeuk@kernel.org>
Sat, 21 Apr 2018 06:44:59 +0000 (23:44 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Aug 2018 05:47:56 +0000 (07:47 +0200)
commita70bfed87ce90fdeef57893eb1df1c4c052fe90f
tree59b06a5e2134944e367e925011c1a7e6de8b2f99
parent5b50b523b723ac272b35c79cb081d8650cdb1f97
f2fs: check cap_resource only for data blocks

[ Upstream commit a90a0884ac75f825157470a1c17e707d487bceb6 ]

This patch changes the rule to check cap_resource for data blocks, not inode
or node blocks in order to avoid selinux denial.

Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/f2fs/f2fs.h