Re: [PATCH/RFC v3] allow userspace to modify scsi command filter on per device basis

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

 



On Wed, 23 Jul 2008 18:11:58 -0700
"Dan Williams" <dan.j.williams@xxxxxxxxx> wrote:

> On Thu, Jun 26, 2008 at 7:36 AM, FUJITA Tomonori
> <fujita.tomonori@xxxxxxxxxxxxx> wrote:
> >> Jens can we add merge this for .27 or does anyone still has objections?
> >
> > I think that this patch makes sg's permission stricter. So this could
> > break the existing user-space applications.
> 
> Yes, it seems to have broken a simple routine I had to retrieve the
> disk serial number from /dev/sg0.  Works fine if I run the ioctl on
> /dev/sda.
> 
> Can we consider this a regression or am I doing something wrong?  The
> following returns 2 on post-2.6.26 mainline and 0 otherwise.

This is a regression. Obviously, the filter patch was tested with only
the block SG_IO partly. It breaks sg and bsg. Al Viro pointed out:

http://marc.info/?l=linux-kernel&m=121662171123285&w=2

I think that it breaks even the block SG_IO with tape drives.

I'll send fixes tonight.
--
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