Skip to content

Commit

Permalink
[dbus] Stricten D-Bus policies. JB#45281
Browse files Browse the repository at this point in the history
Just <allow send_destination="xxx"/> enables access to all
D-Bus services hosted the process providing service xxx.
  • Loading branch information
monich committed Mar 28, 2019
1 parent 8265e9c commit 87ebe69
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion plugins/dbus_service/org.sailfishos.nfc.daemon.conf
Expand Up @@ -5,6 +5,7 @@
<allow own="org.sailfishos.nfc.daemon"/>
</policy>
<policy context="default">
<allow send_destination="org.sailfishos.nfc.daemon"/>
<allow send_destination="org.sailfishos.nfc.daemon"
send_interface="org.sailfishos.nfc.Daemon"/>
</policy>
</busconfig>
3 changes: 2 additions & 1 deletion plugins/settings/org.sailfishos.nfc.settings.conf
Expand Up @@ -5,6 +5,7 @@
<allow own="org.sailfishos.nfc.settings"/>
</policy>
<policy context="default">
<allow send_destination="org.sailfishos.nfc.Settings"/>
<allow send_destination="org.sailfishos.nfc.settings"
send_interface="org.sailfishos.nfc.Settings"/>
</policy>
</busconfig>

0 comments on commit 87ebe69

Please sign in to comment.