polkit: added Voice policy rule

This commit is contained in:
Aleksander Morgado
2015-05-23 18:01:35 +02:00
parent 6ca7c49d80
commit 69585b1374
2 changed files with 44 additions and 0 deletions

View File

@@ -193,6 +193,41 @@
send_interface="org.freedesktop.ModemManager1.Sms" send_interface="org.freedesktop.ModemManager1.Sms"
send_member="Send"/> 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 --> <!-- org.freedesktop.ModemManager1.Modem.Signal.xml -->
<!-- Allowed for everyone --> <!-- Allowed for everyone -->

View File

@@ -45,6 +45,15 @@
</defaults> </defaults>
</action> </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"> <action id="org.freedesktop.ModemManager1.Location">
<_description>Enable and view geographic location and positioning information</_description> <_description>Enable and view geographic location and positioning information</_description>
<_message>System policy prevents enabling or viewing geographic location information.</_message> <_message>System policy prevents enabling or viewing geographic location information.</_message>