mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-09 04:13:33 +02:00
e7f804e9fc5b7d173fc93c210a840627eb996f2e
If a device is currently verifying, identifying or enrolling we may want the user to stop the operation before we actually release the device. Otherwise we may end-up in trying to close (failing) the internal device, while fprintd is still considering the device active, causing a dead-lock (the device can't be released, but neither claimed again or stop the current action). In fact calling Claim() -> EnrollStart() -> Release(), we would fail with the error net.reactivated.Fprint.Error.Internal: Release failed with error: The device is still busy with another operation, please try again later. (36)" However, if we try to call VerifyStop, after this error, we'd fail because for the fprintd logic, the device is not claimed anymore, but actually closed, and we'd need to claim it again, but... That would still cause an internal error. To avoid this, in case Relase() is called cancel the ongoing operation, and wait until it's done before completing the release call.
fprintd ======= https://fprint.freedesktop.org/ Daemon to offer libfprint functionality over D-Bus Might eat your kangaroo. Written in C. Licensed under the GPL version 2 or any later version (see COPYING). A PAM login module is included in the 'pam' directory. API use cases ============= - User wants to use the fingerprint reader, and enroll his fingerprints, or remove some fingerprints from the database - Administrator wants to enroll fingerprints for a particular user, or remove fingerprints for a particular user - Laptop/desktop authentication: * Check for fingerprint devices * Check whether a particular user has any fingerprints enrolled * Verify a fingerprint for a particular user, or, if the device supports it, verify that the fingerprint matches against any of the fingerprints enrolled - Point Of Sale authentication (in a bar, the fingerprint reader is used to see who accesses a particular point of sale/till, in place of PIN code authentication and/or tokens) * Given a list of users, verify which one has scanned their finger
Description
Languages
C
80.9%
Meson
19.1%