Anyone thinking about command filtering should consider the SCSI command set (a moving target), the SAT standard and the fact that protocols other than SCSI use the SG_IO ioctl (e.g. SMP).
P.S. One would think Paolo Bonzini might bring up the subject on the linux-scsi list.
Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds