diff options
author | Johannes Thumshirn <jthumshirn@suse.de> | 2018-03-30 01:05:07 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-03-30 02:29:09 +0300 |
commit | 40f962d78a969e3b476451ebc82deffdee4309c2 (patch) | |
tree | 15a5c44e22829a2d4f298c22a8772c20a6f430a4 /mm/slob.c | |
parent | a38c78d82dd38ce178c994a777751fae61ae31c8 (diff) | |
download | linux-40f962d78a969e3b476451ebc82deffdee4309c2.tar.xz |
lightnvm: centralize permission check for lightnvm ioctl
Currently all functions for handling the lightnvm core ioctl commands
do a check for CAP_SYS_ADMIN.
Change this to fail early in nvm_ctl_ioctl(), so we don't have to
duplicate the permission checks all over.
Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Matias Bjørling <mb@lightnvm.io>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'mm/slob.c')
0 files changed, 0 insertions, 0 deletions