Due to lack of synchronization, a race condition may occur when e.g other programs/services need rw access to /dev/input/*. Since mdevd doesn't provide a way to request its state of processing coldplug uevents, those programs/services have no synchronization with mdevd which may lead to breakage due to bad permissions in /dev/input/*.
This is tricky issue to fix i think. Udev has udevadm settle which blocks until all events are processed. Mdev has mdev -s which set proper permissions in /dev/* without need for daemon. What mdevd should do? Looking forward to your ideas!
Due to lack of synchronization, a race condition may occur when e.g other programs/services need rw access to /dev/input/*. Since mdevd doesn't provide a way to request its state of processing coldplug uevents, those programs/services have no synchronization with mdevd which may lead to breakage due to bad permissions in /dev/input/*.
This is tricky issue to fix i think. Udev has
udevadm settlewhich blocks until all events are processed. Mdev hasmdev -swhich set proper permissions in /dev/* without need for daemon. What mdevd should do? Looking forward to your ideas!