Joseph Kowalski wrote:
> Darren J Moffat wrote:
>> How is it different to pilot-xfer or gphoto or any of the other
>> libusb consumers ?
>>
>> I just don't see what the issue is with this case. If there is an
>> object reuse issue then the issue is with logindevperm giving out
>> access to all the ugen provided devices as a user logs in.
> I'm guessing that this concern follows from the assertion that a scanner
> is "removable media" (to which you have already questioned).
>
> I'd like to hear if others agree with the "it ain't removable media"
> classification.
>
> - jek3
>
It's not removable media.
The necessary property to satisfy the object reuse requirement is to
avoid leaking state information from one use of the device to the next.
We have the same requirement all over the OS (think of memory pages or
filesystem blocks).
Please don't try to use device allocation to solve this problem.
Scott