Skip to main content

timestamp_timeout_value

Function timestamp_timeout_value 

Source
pub const fn timestamp_timeout_value(choice: SudoTimestampChoice) -> i32
Expand description

What: Map a wizard choice to the sudoers timestamp_timeout value.

Inputs:

  • choice: User-selected duration.

Output:

  • Minutes as a positive integer, or -1 for no expiry in the session (per sudoers(5)).

Details:

  • -1 behavior depends on sudo version/policy; document in UI copy.