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@google.com>
Tue, 24 Apr 2018 06:14:53 +0000 (23:14 -0700)
commitb374bf0f3097e464fcf4f8c891816a1437de1182
tree201b05c3f5d33bbb2c890c95abf8ccea61f4f24b
parent3eb22bff65592ff7666a2cbd11262d6751e94441
f2fs: check cap_resource only for data blocks

Cherry-pick from origin/upstream-f2fs-stable-linux-4.14.y:
commit ca17de437834 ("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.

Change-Id: Icf0ce297701d20d288f3f08cd94f3b7c9348f79c
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/f2fs.h