Merge request !1396 from 'primary-slot-polkit'
data, polkit: Add policy rule for setting primary sim slot https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/merge_requests/1396
This commit is contained in:
@@ -71,6 +71,10 @@
|
||||
send_interface="org.freedesktop.ModemManager1.Modem"
|
||||
send_member="SetCurrentModes"/>
|
||||
|
||||
<allow send_destination="org.freedesktop.ModemManager1"
|
||||
send_interface="org.freedesktop.ModemManager1.Modem"
|
||||
send_member="SetPrimarySimSlot"/>
|
||||
|
||||
<allow send_destination="org.freedesktop.ModemManager1"
|
||||
send_interface="org.freedesktop.ModemManager1.Modem"
|
||||
send_member="SetCurrentBands"/>
|
||||
|
||||
@@ -27,6 +27,15 @@
|
||||
</defaults>
|
||||
</action>
|
||||
|
||||
<action id="org.freedesktop.ModemManager1.Modem.SetPrimarySimSlot">
|
||||
<description>Set the primary sim slot of a modem</description>
|
||||
<message>System policy prevents configuring modem properties.</message>
|
||||
<defaults>
|
||||
<allow_inactive>no</allow_inactive>
|
||||
<allow_active>@MM_DEFAULT_USER_POLICY@</allow_active>
|
||||
</defaults>
|
||||
</action>
|
||||
|
||||
<action id="org.freedesktop.ModemManager1.Device.Control">
|
||||
<description>Unlock and control a mobile broadband device</description>
|
||||
<message>System policy prevents unlocking or controlling the mobile broadband device.</message>
|
||||
|
||||
Reference in New Issue
Block a user