Describe the feature you'd like see implemented in sudo-rs
PAM Modules may or may not rely on the conversation that sudo is providing to get the user password, especially when the authentication flow is more complex or may rely on third party (UI) apps.
In such cases, if sudo -p prompt is used, the prompt is lost, because sudo exposes it only during the conversation.
What problem can be solved with this feature?
To prevent this, we could expose a SUDO_PROMPT PAM env variable where such value is shared so that modules can rely on it.
Describe alternatives you've considered
There are not many available, relying on the actual SUDO_PROMPT system env variable is possible when set, but modules should not care about system envs.
Describe the feature you'd like see implemented in
sudo-rsPAM Modules may or may not rely on the conversation that
sudois providing to get the user password, especially when the authentication flow is more complex or may rely on third party (UI) apps.In such cases, if
sudo -p promptis used, thepromptis lost, because sudo exposes it only during the conversation.What problem can be solved with this feature?
To prevent this, we could expose a
SUDO_PROMPTPAM env variable where such value is shared so that modules can rely on it.Describe alternatives you've considered
There are not many available, relying on the actual
SUDO_PROMPTsystem env variable is possible when set, but modules should not care about system envs.