iface-modem-firmware: use the explicit Firmware policy

The Firmware policy is always 'auth_admin'.
This commit is contained in:
Aleksander Morgado
2019-09-25 12:46:52 +02:00
parent 110f6fd021
commit 1cd24a3106

View File

@@ -157,7 +157,7 @@ handle_list (MmGdbusModemFirmware *skeleton,
mm_base_modem_authorize (MM_BASE_MODEM (self), mm_base_modem_authorize (MM_BASE_MODEM (self),
invocation, invocation,
MM_AUTHORIZATION_DEVICE_CONTROL, MM_AUTHORIZATION_FIRMWARE,
(GAsyncReadyCallback)list_auth_ready, (GAsyncReadyCallback)list_auth_ready,
ctx); ctx);
@@ -244,7 +244,7 @@ handle_select (MmGdbusModemFirmware *skeleton,
mm_base_modem_authorize (MM_BASE_MODEM (self), mm_base_modem_authorize (MM_BASE_MODEM (self),
invocation, invocation,
MM_AUTHORIZATION_DEVICE_CONTROL, MM_AUTHORIZATION_FIRMWARE,
(GAsyncReadyCallback)select_auth_ready, (GAsyncReadyCallback)select_auth_ready,
ctx); ctx);