aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorIlya Dryomov <[email protected]>2018-01-11 13:09:12 +0000
committerJens Axboe <[email protected]>2018-01-18 19:57:19 +0000
commita13553c777375009584741e7d9982e775c4b0744 (patch)
tree2bba1cbb952f6cf35eef08c9dd28d6bd56ec5c72 /net/unix/af_unix.c
parentblock: fail op_is_write() requests to read-only partitions (diff)
downloadkernel-a13553c777375009584741e7d9982e775c4b0744.tar.gz
kernel-a13553c777375009584741e7d9982e775c4b0744.zip
block: add bdev_read_only() checks to common helpers
Similar to blkdev_write_iter(), return -EPERM if the partition is read-only. This covers ioctl(), fallocate() and most in-kernel users but isn't meant to be exhaustive -- everything else will be caught in generic_make_request_checks(), fail with -EIO and can be fixed later. Reviewed-by: Sagi Grimberg <[email protected]> Signed-off-by: Ilya Dryomov <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions