Ilya Dryomov bb749b31c2 block: move CAP_SYS_ADMIN check in blkdev_roset()
Check for CAP_SYS_ADMIN before calling into the driver, similar to
blkdev_flushbuf().  This is safer and can spare a check in the driver.

(Currently BLKROSET is overridden by md and rbd, rbd is missing the
check.  md has the check, but it covers a lot more than BLKROSET.)

Acked-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2017-10-25 12:25:00 -06:00
..
2017-10-16 13:00:12 -06:00
2017-10-10 13:48:16 -06:00
2017-10-01 01:26:21 -06:00
2017-10-10 13:48:16 -06:00
2017-10-10 13:48:14 -06:00
2017-04-21 07:56:23 -06:00
2017-08-18 08:36:58 -06:00
2017-08-29 10:50:30 -06:00
2017-10-05 15:22:59 -06:00