https://bugs.kde.org/show_bug.cgi?id=528818
Bug ID: 528818
Summary: polkit-kde-authentication-agent-1 does not handle
prompts provided by pam modules e.g. pam_u2f
Classification: Plasma
Product: policykit-kde-agent-1
Version First 6.8.2
Reported In:
Platform: NixOS
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected], [email protected]
Target Milestone: ---
DESCRIPTION
I am using a usb FIDO authenticator and I am using pam_u2f module before
password auth in sufficient mode.
It is set up in such a way that a 4 digit pin code is required as well as
physical touch to the authenticator.
Whenever I am greeted with polkit-kde-authentication-agent-1 dialogue, it does
not prompt me to plug in the authenticator or enter the pin.
I will explain the auth flow (it plays out the same way with polkit and other
pam-utilising programs, for example sudo):
User is prompted to insert the authenticator and press Enter.
With no authenticator, user is prompted to enter the password (and press Enter)
as usual
With authenticator, user is first prompted to enter the pin. After that, user
is prompted to touch the authenticator.
If something fails (incorrect pin, authenticator is unplugged, authenticator
hardware error), user is prompted to enter the password as usual.
With polkit-kde-authentication-agent-1, only prompt to touch the device is
shown. It does not indicate if the user should press enter to confirm that
authenticator has been plugged in or if it currently prompting for a PIN.
I also tested with the polkit-gnome-authentication-agent-1, and it displays all
prompts correctly (albeit with its own quirks), so the problem is within the
agent itself and not other parts of polkit.
STEPS TO REPRODUCE
1. Implement `auth sufficient pam_u2f.so cue interactive` before pam_unix.so in
/etc/pam.d/polkit-1, set up pam_u2f according to its documentation.
2. Attempt to authenticate with and without usb authenticator attached
OBSERVED RESULT
Only "Please touch the FIDO authenticator." prompt is displayed when
authenticator is attached.
EXPECTED RESULT
All prompts are displayed accordingly.
SOFTWARE/OS VERSIONS
NixOS 26.11 (nixpkgs-unstable)
KDE Plasma Version: 6.8.2
KDE Frameworks Version: 6.31.0
Qt Version: 6.12.0
ADDITIONAL INFORMATION
This is an old bug that has affected several previous versions as well.
--
You are receiving this mail because:
You are watching all bug changes.