mirror of
https://gitlab.freedesktop.org/libfprint/fprintd.git
synced 2026-02-04 20:00:36 +01:00
GDBus generated interface skeletons support natively an authorization method that allows to filter calls before we get into the method callback and that gets called into the call thread, before we go back to main thread. As per this, we can move all the polkit and other authorization checks into this callback so that method handlers are now just assuming they're the right to perform the requested operation. As per the fact we'll share some data between another thread and the callbacks, we will need to introduce some locking mechanism to ensure safe data access. This might be reduced by moving the claiming checks back to the method, but would lead errors to be handled in different ordering, and so the user to be requested for a password, and then - in case fail. This can still happen now, but only if there are concurrent requests. |
||
|---|---|---|
| .. | ||
| device.c | ||
| device.xml | ||
| file_storage.c | ||
| file_storage.h | ||
| fprintd.h | ||
| main.c | ||
| manager.c | ||
| manager.xml | ||
| meson.build | ||
| storage.h | ||