David Tardon
536c18e5c3
bus-polkit: shortcut auth. after first denial
...
A D-Bus/Varlink method can issue PolicyKit auth. requests for multiple
actions; in this case the method is expected to fail on the first one
that is not allowed. This is enforced by asserts in
async_polkit_read_reply(), but that's a wrong place for the check for
two reasons:
1. it doesn't allow to get a meaningful stack trace;
2. sending the query to polkit is already a pointless exercise.
Let's do the check in *_verify_polkit_async_full() and don't send
anything to PolicyKit in that case.
Inspired by https://bugzilla.redhat.com/show_bug.cgi?id=2349594 .
2025-03-11 17:18:12 +01:00
..
2025-03-06 11:42:20 +01:00
2025-03-11 12:03:57 +01:00
2025-03-06 11:42:20 +01:00
2025-02-26 17:28:43 +01:00
2025-03-06 11:42:20 +01:00
2025-03-11 12:03:12 +01:00
2025-03-06 11:42:20 +01:00
2025-03-10 02:41:40 +09:00
2025-03-06 11:42:20 +01:00
2025-03-10 02:41:40 +09:00
2025-03-10 02:41:40 +09:00
2025-02-10 15:33:59 +01:00
2025-03-06 17:43:04 +01:00
2025-02-27 15:13:15 +01:00
2025-03-10 02:41:40 +09:00
2025-03-06 11:42:20 +01:00
2025-02-23 05:37:05 +09:00
2025-03-06 09:42:18 +01:00
2025-03-04 02:24:49 +09:00
2025-03-05 17:18:21 +01:00
2025-03-10 02:41:40 +09:00
2025-03-07 17:12:36 +00:00
2025-03-06 11:42:20 +01:00
2025-02-25 21:40:05 +01:00
2025-02-17 15:07:38 +01:00
2025-02-27 13:37:20 +09:00
2025-03-01 16:22:53 +01:00
2025-03-07 18:36:23 -05:00
2025-03-11 05:48:19 +09:00
2025-03-06 11:42:20 +01:00
2025-03-04 02:24:49 +09:00
2025-03-06 11:42:20 +01:00
2025-03-04 18:07:17 +01:00
2025-03-10 02:41:40 +09:00
2025-03-11 05:50:04 +09:00
2025-03-10 05:39:49 +09:00
2025-02-26 13:02:23 +01:00
2025-03-04 23:02:31 +01:00
2025-03-11 05:50:04 +09:00
2025-03-04 02:24:49 +09:00
2025-03-06 11:42:20 +01:00
2025-03-06 14:30:07 +01:00
2025-03-04 22:58:49 +01:00
2025-03-05 12:37:24 +01:00
2025-03-10 02:41:40 +09:00
2025-03-06 11:42:20 +01:00
2025-03-10 22:34:52 +09:00
2025-02-28 04:04:18 +09:00
2025-03-11 17:18:12 +01:00
2025-03-11 05:53:31 +09:00
2025-03-10 02:41:40 +09:00
2025-02-27 13:48:34 +09:00
2025-03-10 02:41:40 +09:00
2025-03-10 02:41:40 +09:00
2025-03-05 15:25:36 +01:00
2025-03-06 14:05:35 +01:00
2025-03-01 16:22:53 +01:00
2025-03-11 12:03:57 +01:00
2025-03-04 02:24:49 +09:00
2025-02-25 13:45:07 +09:00
2025-03-11 18:52:28 +09:00
2025-03-07 18:13:16 +01:00
2025-03-03 10:47:09 +01:00
2025-03-11 18:43:43 +09:00
2025-03-05 11:26:47 +00:00
2025-03-11 05:48:19 +09:00
2025-02-20 18:12:12 +01:00
2025-03-10 16:41:43 +01:00