TOCTOU problem with writing to auth files
It is possible, that some devices interface is about to be authorized, but then the interface itself disappears (e.g. if the device gets blocked or removed from the system).
In this case, the daemon crashes because it's trying to write to an auth file that does not exist anymore.
Theses cases have to be handled/abstracted away.