mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-08 20:03:34 +02:00
Add user tracking when claiming a device
Mark all the methods on the device as async, so we can get access to the associated DBusGMethodInvocation. When claiming the device, remember the sender, and for every API entry point, check that the sender is the same as the one that made the original claim. Trying to enroll a user whilst the device is already claimed from another program will fail with: ** ERROR **: failed to claim device: Device was already claimed This is the first step towards PolicyKit and multi-user support
This commit is contained in:
committed by
Daniel Drake
parent
039c988f4b
commit
1748e5f484
@ -1,2 +1,3 @@
|
||||
src/main.c
|
||||
src/manager.c
|
||||
src/device.c
|
||||
|
||||
Reference in New Issue
Block a user