Created attachment 132123 [details]
PAM module ignoring ^C
When attempting to authenticate using the fprintd PAM module, there is no way to quit out without waiting for the verification timeout to occur.
Sending SIGINT (via ^C) should cause the authentication to immediately fail.
Sending SIGINT (via ^C) does not do anything. Authentication only fails after timeout period expires.
Currently running fprintd 0.7.0+12+ge55ad52-3 installed from the Arch Linux repos.
There's nothing in the module's source code intercepting signals, so it must be something in one of the dependencies. A backtrace of the blocked service, as well as a debug output would be good first steps.
Sorry, I haven't debugged PAM modules before so I am currently learning how to grab the stacktrace and debug output. If anyone could provide any advice on this, it'd be appreciated.
Meanwhile, I used the pamtester utility to attempt to debug this and I discovered that I can ^C just fine when I run `pamtester sudo $USER authenticate`.
Where I'm encountering the issue is when I'm actually attempting to do something using sudo, itself. For example, `sudo echo hi`.
The following are the contents to my `/etc/pam.d/sudo`, if this helps.
auth sufficient pam_fprintd.so
auth include system-auth
account include system-auth
session include system-auth
(In reply to liu.denton from comment #2)
> Sorry, I haven't debugged PAM modules before so I am currently learning how
> to grab the stacktrace and debug output. If anyone could provide any advice
> on this, it'd be appreciated.
It's the same as getting the backtrace of any other program. Please check with your distribution for how exactly to get all the necessary debugging symbols installed.
-- GitLab Migration Automatic Message --
This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.
You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/libfprint/fprintd/issues/6.