polkit: added Voice policy rule
This commit is contained in:
@@ -193,6 +193,41 @@
|
||||
send_interface="org.freedesktop.ModemManager1.Sms"
|
||||
send_member="Send"/>
|
||||
|
||||
<!-- org.freedesktop.ModemManager1.Modem.Voice.xml -->
|
||||
|
||||
<!-- Allowed for everyone -->
|
||||
<allow send_destination="org.freedesktop.ModemManager1"
|
||||
send_interface="org.freedesktop.ModemManager1.Modem.Voice"
|
||||
send_member="ListCalls"/>
|
||||
|
||||
<!-- Protected by the Voice policy rule -->
|
||||
<allow send_destination="org.freedesktop.ModemManager1"
|
||||
send_interface="org.freedesktop.ModemManager1.Modem.Voice"
|
||||
send_member="CreateCall"/>
|
||||
|
||||
<allow send_destination="org.freedesktop.ModemManager1"
|
||||
send_interface="org.freedesktop.ModemManager1.Modem.Voice"
|
||||
send_member="DeleteCall"/>
|
||||
|
||||
<!-- org.freedesktop.ModemManager1.Call.xml -->
|
||||
|
||||
<!-- Protected by the Voice policy rule -->
|
||||
<allow send_destination="org.freedesktop.ModemManager1"
|
||||
send_interface="org.freedesktop.ModemManager1.Call"
|
||||
send_member="Start"/>
|
||||
|
||||
<allow send_destination="org.freedesktop.ModemManager1"
|
||||
send_interface="org.freedesktop.ModemManager1.Call"
|
||||
send_member="Accept"/>
|
||||
|
||||
<allow send_destination="org.freedesktop.ModemManager1"
|
||||
send_interface="org.freedesktop.ModemManager1.Call"
|
||||
send_member="Hangup"/>
|
||||
|
||||
<allow send_destination="org.freedesktop.ModemManager1"
|
||||
send_interface="org.freedesktop.ModemManager1.Call"
|
||||
send_member="SendTone"/>
|
||||
|
||||
<!-- org.freedesktop.ModemManager1.Modem.Signal.xml -->
|
||||
|
||||
<!-- Allowed for everyone -->
|
||||
|
@@ -45,6 +45,15 @@
|
||||
</defaults>
|
||||
</action>
|
||||
|
||||
<action id="org.freedesktop.ModemManager1.Voice">
|
||||
<_description>Accept incoming voice calls or start outgoing voice calls.</_description>
|
||||
<_message>System policy prevents voice calls.</_message>
|
||||
<defaults>
|
||||
<allow_inactive>no</allow_inactive>
|
||||
<allow_active>@MM_DEFAULT_USER_POLICY@</allow_active>
|
||||
</defaults>
|
||||
</action>
|
||||
|
||||
<action id="org.freedesktop.ModemManager1.Location">
|
||||
<_description>Enable and view geographic location and positioning information</_description>
|
||||
<_message>System policy prevents enabling or viewing geographic location information.</_message>
|
||||
|
Reference in New Issue
Block a user