Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1544622

Re: [PATCH RESEND] block: allow WRITE_SAME commands with the SG_IO ioctl

From Jens Axboe <axboe@kernel.dk>
Newsgroups linux.kernel
Subject Re: [PATCH RESEND] block: allow WRITE_SAME commands with the SG_IO ioctl
Date 2016-12-19 16:40 +0100
Message-ID <sQ8cG-1hT-17@gated-at.bofh.it> (permalink)
References <sOIkh-gU-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 12/15/2016 10:48 AM, Mauricio Faria de Oliveira wrote:
> The WRITE_SAME commands are not present in the blk_default_cmd_filter
> write_ok list, and thus are failed with -EPERM when the SG_IO ioctl()
> is executed without CAP_SYS_RAWIO capability (e.g., unprivileged users).
> [ sg_io() -> blk_fill_sghdr_rq() > blk_verify_command() -> -EPERM ]

Added for 4.10, thanks.

-- 
Jens Axboe

Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

[PATCH RESEND] block: allow WRITE_SAME commands with the SG_IO ioctl Mauricio Faria de Oliveira <mauricfo@linux.vnet.ibm.com> - 2016-12-15 18:50 +0100
  Re: [PATCH RESEND] block: allow WRITE_SAME commands with the SG_IO  ioctl Christoph Hellwig <hch@infradead.org> - 2016-12-19 11:50 +0100
  Re: [PATCH RESEND] block: allow WRITE_SAME commands with the SG_IO  ioctl Jens Axboe <axboe@kernel.dk> - 2016-12-19 16:40 +0100

csiph-web