f2fs: check cap_resource only for data blocks
authorJaegeuk Kim <jaegeuk@kernel.org>
Sat, 21 Apr 2018 06:44:59 +0000 (23:44 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 23 Apr 2018 22:12:47 +0000 (16:12 -0600)
commitca17de437834f96c7482062fcc06e41d40b15194
tree8326e6cd55c78d058877df6dde04b187f30e4c99
parent4c3540173ab2670e1288df7ad1cf79c3e7c44650
f2fs: check cap_resource only for data blocks

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>
fs/f2fs/f2fs.h