[SCSI] SCSI tape: fix permissions for SG_IO, etc.
commit16c4b3e2071ad73e5cd2aa82961eed0414df6a7d
authorKai Makisara <Kai.Makisara@kolumbus.fi>
Sun, 1 May 2005 15:11:55 +0000 (1 18:11 +0300)
committerJames Bottomley <jejb@mulgrave.(none)>
Fri, 20 May 2005 17:53:46 +0000 (20 12:53 -0500)
tree4083223806465884f775c6df142b8772e51073f7
parentf80ed139343c37c897ae89c70f7736a6937172f5
[SCSI] SCSI tape: fix permissions for SG_IO, etc.

This patch is against 2.6.12-rc3 + linus-patch from April 30. The patch
contains the following fixes:

- CAP_SYS_RAWIO is used instead of CAP_SYS_ADMIN; fix from Alan Cox
- only direct sending of SCSI commands requires this permission
- the st status is modified is successful unload is performed using
  SCSI_IOCTL_STOP_UNIT

Signed-off-by: Kai Makisara <kai.makisara@kolumbus.fi>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/st.c