importd: fix polkit policy name used in method_cancel (#44591)

Fixes a bug reported in #43975, where Transfer.Cancel is authorized by
import1.pull policy, which should be import1.cancel instead.

(cherry picked from commit d38eca0d2d)
(cherry picked from commit 19b698a9f6)
This commit is contained in:
Xinyu Yu authored and Luca Boccassi committed 2026-11-05 14:48:10 +00:00
1 parent 6fb749e6aa
commit 4d1d127dd7
1 file changed
+1 -1
+1 -1
View File
@@ -1293,7 +1293,7 @@ static int method_cancel(sd_bus_message *msg, void *userdata, sd_bus_error *erro
r = bus_verify_polkit_async(
msg,
"org.freedesktop.import1.pull",
"org.freedesktop.import1.cancel",
/* details= */ NULL,
&t->manager->polkit_registry,
error);