diff options
author | 2018-03-30 00:05:07 +0200 | |
---|---|---|
committer | 2018-03-29 17:29:09 -0600 | |
commit | 40f962d78a969e3b476451ebc82deffdee4309c2 (patch) | |
tree | 15a5c44e22829a2d4f298c22a8772c20a6f430a4 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | lightnvm: fix bad block initialization (diff) | |
download | linux-rng-40f962d78a969e3b476451ebc82deffdee4309c2.tar.xz linux-rng-40f962d78a969e3b476451ebc82deffdee4309c2.zip |
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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions