GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add feature to prioritise pam_u2f over pam_fprintd by asakure · Pull Request #455 · authselect/authselect

Conversation

@asakure

@asakure asakure commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

This patch adds a new optional feature 'with-pam-u2f-priority' that allows users to prioritize U2F hardware token authentication before fingerprint authentication i.e. pam_u2f.so module will be added before pam_fprintd.so module in system-auth file.

Fixes: #335

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

gemini-code-assist[bot] reacted with eyes emoji
All reactions
  • 👀 1 reaction
gemini-code-assist[bot]
gemini-code-assist Bot reviewed Jun 3, 2026
View reviewed changes

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a new option, with-pam-u2f-priority, to prioritize U2F authentication over fingerprint authentication when both are enabled. This option is documented in the README and REQUIREMENTS files, and implemented in the system-auth PAM configuration. A review comment correctly points out that when both with-pam-u2f and with-pam-u2f-priority are enabled, pam_u2f.so will be included twice in the PAM stack. To avoid this duplicate entry, the second pam_u2f.so line should be updated to only be included if with-pam-u2f-priority is not enabled.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread profiles/sssd/system-auth
auth [success=done ignore=ignore default=die] pam_sss.so require_cert_auth ignore_authinfo_unavail {include if "with-smartcard-required"}
auth sufficient pam_u2f.so cue {include if "with-pam-u2f" and "with-pam-u2f-priority"}
auth sufficient pam_fprintd.so {include if "with-fingerprint"}
auth sufficient pam_u2f.so cue {include if "with-pam-u2f"}

@gemini-code-assist gemini-code-assist Bot Jun 3, 2026

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

When both with-pam-u2f and with-pam-u2f-priority are enabled, pam_u2f.so will be included twice in the PAM stack (at line 7 and line 9). To prevent this duplicate entry, line 9 should only be included if with-pam-u2f is enabled and with-pam-u2f-priority is not enabled.

auth        sufficient                                   pam_u2f.so cue                                         {include if "with-pam-u2f" and not "with-pam-u2f-priority"}

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@asakure asakure Jun 3, 2026

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't notice this issue yet during my tests on RHEL 9.6.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@asakure asakure changed the title Add feature to priortise pam_u2f over pam_fprintd Add feature to prioritise pam_u2f over pam_fprintd Jun 3, 2026
@asakure
Add feature to priortise pam_u2f over pam_fprintd
216a89e
This patch adds a new optional feature 'with-pam-u2f-priority'
that allows users to prioritize U2F hardware token authentication
before fingerprint authentication i.e. pam_u2f.so module will be
added before pam_fprintd.so module in system-auth file for
supported authselect profiles.

Fixes: authselect#335
Signed-off-by: Akshay Sakure <[email protected]>
@asakure
asakure force-pushed the change_pam_u2f_order branch from cb7f31f to 216a89e Compare June 26, 2026 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer
@gemini-code-assist gemini-code-assist[bot] gemini-code-assist[bot] left review comments
Reviewers whose approvals may not affect merge requirements

At least 1 approving review is required to merge this pull request.

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Control the order of auth sufficient in pam

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@asakure
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.