[PATCH] dbus: Only root can receive signals.

Witold Sowa witold.sowa
Wed Nov 11 13:39:20 PST 2009


Change in dbus policy file. Now only root applications can receive
signals from wpa_supplicant. This keeps WPS Credentials data secret
for non-root listeners.
---
 wpa_supplicant/dbus-wpa_supplicant.conf |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/wpa_supplicant/dbus-wpa_supplicant.conf b/wpa_supplicant/dbus-wpa_supplicant.conf
index 1d4368e..c091234 100644
--- a/wpa_supplicant/dbus-wpa_supplicant.conf
+++ b/wpa_supplicant/dbus-wpa_supplicant.conf
@@ -12,7 +12,7 @@
 
                 <allow send_destination="fi.w1.wpa_supplicant1"/>
                 <allow send_interface="fi.w1.wpa_supplicant1"/>
-
+                <allow receive_sender="fi.w1.wpa_supplicant1" receive_type="signal"/>
         </policy>
         <policy context="default">
                 <deny own="fi.epitest.hostap.WPASupplicant"/>
@@ -22,5 +22,6 @@
                 <deny own="fi.w1.wpa_supplicant1"/>
                 <deny send_destination="fi.w1.wpa_supplicant1"/>
                 <deny send_interface="fi.w1.wpa_supplicant1"/>
+                <deny receive_sender="fi.w1.wpa_supplicant1" receive_type="signal"/>
         </policy>
 </busconfig>
-- 
1.6.0.2


--------------030506040808000201010303--



More information about the Hostap mailing list