pub fn detect_pam_fingerprint(tool: PrivilegeTool) -> boolExpand description
What: Detect whether the active privilege tool’s PAM configuration includes pam_fprintd.
Inputs:
tool: Resolved privilege tool (sudo or doas).
Output:
trueif/etc/pam.d/{tool}exists and contains a reference topam_fprintd.
Details:
- Reads
/etc/pam.d/sudoor/etc/pam.d/doasand checks forpam_fprintd.so. - Also checks
/etc/pam.d/system-authand/etc/pam.d/system-local-loginas common include targets wherepam_fprintdmay be configured instead of the tool-specific file. - Informational only — never blocks execution.
- Returns
falseon any I/O error (missing file, permission denied).