|
@@ -771,6 +771,8 @@ static long aac_compat_do_ioctl(struct aac_dev *dev, unsigned cmd, unsigned long
|
|
|
static int aac_compat_ioctl(struct scsi_device *sdev, int cmd, void __user *arg)
|
|
|
{
|
|
|
struct aac_dev *dev = (struct aac_dev *)sdev->host->hostdata;
|
|
|
+ if (!capable(CAP_SYS_RAWIO))
|
|
|
+ return -EPERM;
|
|
|
return aac_compat_do_ioctl(dev, cmd, (unsigned long)arg);
|
|
|
}
|
|
|
|