Stop invalidating the global sudo timestamp on privileged-mode exit #4

Closed
opened 2026-09-03 07:35:17 +00:00 by phg · 1 comment
Owner

Context

PermissionManager.release_sudo currently runs sudo -k when privileged mode ends. That invalidates the user-wide cached sudo timestamp, including authorization acquired outside hosts. Leaving the application mode should release application state without changing process-external sudo state.

This is related to #3, which covers alternative PAM authentication, but it has a separate cause and completion criterion.

Acceptance criteria

  • Leaving privileged mode does not invoke sudo -k.
  • Local permission flags and undo/redo session state are still cleared.
  • Tests verify that exiting privileged mode does not invalidate the global sudo timestamp.
  • User and contributor documentation reflect the resulting lifecycle.
Context PermissionManager.release_sudo currently runs sudo -k when privileged mode ends. That invalidates the user-wide cached sudo timestamp, including authorization acquired outside hosts. Leaving the application mode should release application state without changing process-external sudo state. This is related to #3, which covers alternative PAM authentication, but it has a separate cause and completion criterion. Acceptance criteria - Leaving privileged mode does not invoke sudo -k. - Local permission flags and undo/redo session state are still cleared. - Tests verify that exiting privileged mode does not invalidate the global sudo timestamp. - User and contributor documentation reflect the resulting lifecycle.
phg added the
Priority
High
Kind/Bug
labels 2026-09-03 07:35:17 +00:00
Author
Owner

Fixed in: 68a9696e7d

Fixed in: 68a9696e7d
phg closed this issue 2026-09-03 17:31:50 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: phg/hosts#4
No description provided.