data, polkit: Add policy rule for setting primary sim slot

Needed for exposing the modem's Primary sim slot setting in
GNOME Settings.
See https://gitlab.gnome.org/GNOME/gnome-control-center/-/merge_requests/2867

Signed-off-by: Felipe Borges <felipeborges@gnome.org>
This commit is contained in:
Felipe Borges
2025-09-05 11:31:25 -05:00
committed by Dan Williams
parent 2f6fc0d038
commit d5bee2bca6
2 changed files with 13 additions and 0 deletions
@@ -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>