Managing dynamic device naming
Managing dynamic device naming
Posted Apr 17, 2003 18:37 UTC (Thu) by oneukum (guest, #3970)Parent article: Managing dynamic device naming
I am afraid that your description of the important race in the userland approach
is wrong. With an unplug before a plug we can live. The fix is obvious.
The really difficult race is a replug race. It goes like this.
- device A plugged in
- udev configures A (including permissions)
- device A unplugged
- device B plugged in
This is the culprit. under the current system device numbers are reused which
means that for a short window a device can be accessed with permissions it
should not have.
Unfortunately any userland solution does have this problem.
