Skip to content

Customize the SG_IO whitelist for different device classes

Paolo Bonzini linux-scsi lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 Latest7 patches 0 repliesNew

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7sg_io: complete transition to per-class lists of allowed commandsblock/scsi_ioctl.c include/scsi/scsi.h+128 -820 replies
2/7sg_io: create separate entries for conflicting commandsblock/scsi_ioctl.c+9 -310 replies
3/7sg_io: cleanup and complete whitelist for rare device typesblock/scsi_ioctl.c+31 -80 replies
4/7sg_io: whitelist another command for multimedia devicesblock/scsi_ioctl.c+1 -00 replies
5/7sg_io: cleanup and complete whitelist for media changersblock/scsi_ioctl.c+22 -50 replies
6/7sg_io: cleanup and complete whitelist for tapesblock/scsi_ioctl.c+36 -110 replies
7/7sg_io: cleanup and complete whitelist for disksblock/scsi_ioctl.c+12 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 part3 0/7] Customize the SG_IO whitelist for different device classes

The last problem in the SG_IO whitelist is that because the bitmap of allowed commands is designed for MMC devices only, some commands are missing even though they are generally useful and not insecure. At least, they are not more insecure than anything else you can do if you have access to /dev/sdX or /dev/stX nodes.

In particular, the whitelist is hardly usable for tapes; and in the case of virtualization, the few missing commands for disks may cause guests to log errors.

Paolo

Paolo Bonzini (7):
sg_io: complete transition to per-class lists of allowed commands
sg_io: create separate entries for conflicting commands
sg_io: cleanup and complete whitelist for rare device types
sg_io: whitelist another command for multimedia devices
sg_io: cleanup and complete whitelist for media changers
sg_io: cleanup and complete whitelist for tapes
sg_io: cleanup and complete whitelist for disks

 block/scsi_ioctl.c  | 309 ++++++++++++++++++++++++++++++++++------------------
 include/scsi/scsi.h |   3 +
 2 files changed, 206 insertions(+), 106 deletions(-)
Signature · 1 line
1.8.1.4