Thread (36 messages) flat view 36 messages, 2 authors, 2021-07-22

Re: [PATCH 17/24] scsi_ioctl: simplify SCSI passthrough permission checking

From: Bart Van Assche <bvanassche@acm.org>
Date: 2021-07-22 17:47:41
Also in: linux-scsi

On 7/11/21 10:48 PM, Christoph Hellwig wrote:
+bool scsi_cmd_allowed(unsigned char *cmd, fmode_t mode)
  {
The first time I encountered this function it was not clear to me what 
the purpose of this function is. I think this is a good time to add a 
comment above this function that explains its purpose, namely to prevent 
that unprivileged SG I/O users can modify storage device firmware.

Thanks,

Bart.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help