Skip to main content

Module password

Module password 

Source
Expand description

Privilege password validation utilities.

Delegates to crate::logic::privilege for tool-aware checks.

Functionsยง

check_passwordless_sudo_available
What: Check if passwordless privilege escalation is available for the current user.
resolve_auth_mode
What: Resolve the effective authentication mode from settings.
should_force_interactive_auth_handoff
What: Determine whether interactive handoff is being forced by compatibility fallback.
should_skip_password_modal
What: Determine whether the Pacsea password modal should be skipped.
should_use_interactive_auth_handoff
What: Determine whether Pacsea should perform interactive auth handoff.
should_use_passwordless_sudo
What: Check if passwordless privilege escalation should be used based on settings and system availability.
validate_sudo_password
What: Validate a privilege tool password without executing any command.