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>
Wed, 2 May 2018 21:30:58 +0000 (14:30 -0700)
commita90a0884ac75f825157470a1c17e707d487bceb6
treee50352764c7df978080ac497a8f40aded91bbcf6
parentb87078ad3aec0d116e8bdc91ecbe18b5c0e49896
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