Thread (5 messages) 5 messages, 2 authors, 2017-10-04

Re: [PATCH] block: drop "sending ioctl to a partition" message

From: Christoph Hellwig <hch@infradead.org>
Date: 2017-09-21 14:53:06
Also in: kvm, lkml

This looks ok to me, but do we even need to keep the special
cases above?  Is there anything relying on the safe but not very
useful ioctls?

Condensing the thing down to:

int scsi_verify_blk_ioctl(struct block_device *bd, unsigned int cmd)
{
	if (bd && bd == bd->bd_contains)
		return 0;
	if (capable(CAP_SYS_RAWIO))
		return 0;
	return -ENOIOCTLCMD;
}

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