Searched hist:bb749b31c25e9b11f8f974baac8d507298ffbb70 (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/block/ |
H A D | ioctl.c | diff bb749b31c25e9b11f8f974baac8d507298ffbb70 Wed Oct 18 07:38:38 CDT 2017 Ilya Dryomov <idryomov@gmail.com> 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>
|