[lkml]   [2007]   [Jul]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Patch in this message
    SubjectRe: Linux 2.6.22 released
    Are the shortlogs useful - yes .. they catch what appear to be mistakes

    Specifically: What happened to the aacraid ioctl security fix ? Did someone decide it
    wasn't needed or did it get lost somewhere on the way ?

    While this looks scary the only obvious exploit cases are where the user can
    open a device level file on an AACraid. Very few people put scanners or CD
    devices on one so the actual impact is probably minimal.



    Signed-off-by: Alan Cox <>

    --- drivers/scsi/aacraid/linit.c~ 2007-07-09 10:51:55.653223304 +0100
    +++ drivers/scsi/aacraid/linit.c 2007-07-09 10:51:55.653223304 +0100
    @@ -453,6 +453,8 @@
    static int aac_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_do_ioctl(dev, cmd, arg);

    @@ -645,6 +647,8 @@
    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);

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at
     \ /
      Last update: 2007-07-09 12:11    [W:0.033 / U:74.500 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site