Re: usbfs, claiming entire usb devices

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

 



Am Donnerstag, 7. Mai 2009 18:51:14 schrieb Alan Stern:
> > It should probably just allow it for either process that has the fd. If
> > the user program claimed a port and then forked, it was probably
> > intending to share ports.
>
> You don't understand the problem.  Suppose a program tries to open a
> usbfs device file.  How does the kernel know whether or not that
> process has opened the corresponding port file?  I suppose we could

Don't allow it ever. If somebody opens the port file all access of the device
must come through the port fd. If you want an usbfs handle, allow creation
of it through the port fd.

	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