f2fs: set pin_file under CAP_SYS_ADMIN
authorJaegeuk Kim <jaegeuk@kernel.org>
Wed, 13 Mar 2019 23:15:08 +0000 (16:15 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 14 Mar 2019 17:20:54 +0000 (10:20 -0700)
commitaff7b628ac2d58616b74789389ebb1e987081f49
tree96141937c85b75a4316170138414240337b02e9c
parentaadcef64b22f668c1a107b86d3521d9cac915c24
f2fs: set pin_file under CAP_SYS_ADMIN

Android uses pin_file for uncrypt during OTA, and that should be managed by
CAP_SYS_ADMIN only.

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