Files
systemd/shell-completion/bash
Ronan Pigott 78b53d0132 run0: implement -k/-K to revoke temporary auth
This is meant to mirror sudo's -k/--reset-timestamp and
-K/--remove-timestamp options, which revoke the temporary authorization
provided by the timestamp files in /var/run/sudo/ts.

To achieve the same effect in run0, we ask polkit to revoke our
temporary authorization. If used with a command, run0 will revoke the
temporary auth and then immediately authorize the user again, just like
sudo -k. All the bus calls are completed synchronously, as they need to
complete before authorizing the user anyway.

Like sudo, the effect of -k/--reset-timestamp is to revoke only the
tmpauthz that polkit would have used to authorize the command, if
available. The -K/--remove-timestamp option will revoke all temporary
authorizations across all ttys.
2026-06-20 09:55:02 +01:00
..
2026-05-01 07:10:31 +02:00
2025-07-14 20:24:26 +09:00
2025-07-14 20:24:26 +09:00
2025-07-14 20:24:26 +09:00
2026-05-05 15:09:47 +02:00
2026-05-05 15:09:47 +02:00
2025-07-14 20:24:26 +09:00