Re: RFC: allow usb drivers to disallow USBDEVFS_DISCONNECT

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

 



Am Dienstag, 12. Januar 2010 17:28:04 schrieb Hans de Goede:
> Well, all the userspace program will get from this point on is -EIO,
> at which point it can either retry (which will fail again), or abort.
> Either way the end user experience is not good.
> 
> Normally when a device is single use only, and an app has it open, when
> an other app wants to open it it will get -EBUSY.

True.

> The mix of userspace / kernelspace drivers in this case breaks this
> behavior as any libgphoto2 using app can now steal the device from
> the webcam using app.

But why can the app using libgphoto2 issue the ioctl in the first place?
If you don't want to allow it to do that, why are permissions allowing
it to do so?

	Regards
		Oliver
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux