Arbitrary SCSI commands and CAP_SYS_ADMIN

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In include/uapi/linux/capability.h, next to CAP_SYS_ADMIN, one will find 
the notice

/* Allow enabling/disabling tagged queuing on SCSI controllers and sending
   arbitrary SCSI commands */

#define CAP_SYS_ADMIN 21

To the best of my knowledge, arbitrary commands can be issued with 
the SG_IO ioctl. However, in drivers/scsi/sg.c, SG_IO does not need any 
capabilities. Furthermore, in block/bsg.c, SG_IO suddenly needs 
CAP_SYS_RAWIO (blk_fill_sgv4_hdr_rq < bsg_map_hdr < bsg_ioctl, or 
through __bsg_write). Is the source documentation out of date?
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux