f2fs: avoid selinux denial on CAP_SYS_RESOURCE
authorJaegeuk Kim <jaegeuk@kernel.org>
Fri, 9 Mar 2018 04:47:33 +0000 (20:47 -0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Sun, 8 Apr 2018 11:11:41 +0000 (04:11 -0700)
commit5ebe362c0c604afba0dd5c2cdf9c500e9f15f1de
treee35c055f496ee3e86f490080e07a65623a3c2a00
parentea34734357a9df8760cc0708c5777bf7213cd971
f2fs: avoid selinux denial on CAP_SYS_RESOURCE

This fixes CAP_SYS_RESOURCE denial of selinux when using resgid, since it
seems selinux reports it at the first place, but mostly we don't need to
check this condition first.

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