Question about security of ioctl's() on raw block devices

Chris Evans (chris@ferret.lmh.ox.ac.uk)
Mon, 18 Aug 1997 15:04:28 +0100 (BST)


Hi,

Here's a probably naive question;

If I open a raw fixed disk block device, say /dev/sda or /dev/hda, with
the read-only flag, can I still cause a write to disk, or similar, by
using a special 'send-command' ioctl, such as HDIO_DRIVE_CMD (ide) or
SCSI_IOCTL_SEND_COMMAND (scsi)?

Cheers,
Chris