pub fn build_credential_invalidation(tool: PrivilegeTool) -> Option<String>Expand description
What: Build a credential invalidation command.
Inputs:
tool: Resolved privilege tool.
Output:
Some(cmd)for tools that support credential invalidation (sudo).Nonefor tools that do not (doas).
Details:
- For sudo:
sudo -kinvalidates cached credentials. - doas has no credential cache to invalidate.