I noticed that COPY was a new feature in devfsd.
I'd like to implement something similar for USB, but which tracks the
device.
Or, if the device is new (not previously known to be plugged into this
system), could be given a default set of permissions based on
configuration options.
COPY unfortunately will make it difficult to track USB devices since the
information tracked is the filename and it is store as a file.
I guess the information could be encoded into a filename, but that starts
getting ugly.
I'd like to use a database (berkeley, gdbm, text, etc) to store the
information necessary. Perhaps in addition to the current scheme of
storing the information in the filesystem via a different tree.
In most cases, we would use the serial number to track the device.
I'd like to make it flexible enough to track based on vendor/product and
possibly bus topology for those people who wish to use it.
JE
|