mirror of
https://github.com/systemd/systemd.git
synced 2026-11-06 05:17:24 +00:00
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:
1 parent
3b9fdf23d8
commit
d38eca0d2d
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user