commit | 40f962d78a969e3b476451ebc82deffdee4309c2 | [log] [tgz] |
---|---|---|
author | Johannes Thumshirn <jthumshirn@suse.de> | Fri Mar 30 00:05:07 2018 +0200 |
committer | Jens Axboe <axboe@kernel.dk> | Thu Mar 29 17:29:09 2018 -0600 |
tree | 15a5c44e22829a2d4f298c22a8772c20a6f430a4 | |
parent | a38c78d82dd38ce178c994a777751fae61ae31c8 [diff] |
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>