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.
This commit is contained in:
Xinyu Yu authored and GitHub committed 2026-11-03 11:14:41 +00:00
1 parent 3b9fdf23d8
commit d38eca0d2d
1 file changed
+1 -1
+1 -1
View File
@@ -1295,7 +1295,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);