hostap/wpa_supplicant/dbus
Jouni Malinen 8a78e227df D-Bus: Fix operations when P2P management interface is used
Commit 21efc940f6 ('wpa_supplicant: Do not
register a P2P management interface on DBus') hides the special P2P
management interface from D-Bus. However, it did not take into account
the possibility of wpa_s->dbus_path and wpa_s->dbus_new_path being NULL
in such cases on number of code paths within the D-Bus handlers. This
could result in invalid arguments (NULL path) being provided to D-Bus
functions (mainly, dbus_message_iter_append_basic) and NULL pointer
dereference when iterating over all interfaces. Either of these could
make wpa_supplicant process terminate.

Fix this by explicitly checking that the interface-specific D-Bus path
has been registered before using it anywhere with D-Bus handlers. In
addition, find the correct wpa_s instance to fix P2P operations through
D-Bus when the P2P Device interface is used.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
2015-04-29 20:42:25 +03:00
..
.gitignore dbus: Clean dbus build files on wpa_supplicant 'make clean' 2009-12-20 20:29:09 +02:00
dbus-wpa_supplicant.conf Move D-Bus related files into their own subdirectory 2009-12-20 20:11:14 +02:00
dbus_common.c D-Bus: Coding style cleanup 2015-01-02 22:50:26 +02:00
dbus_common.h Update license notification in D-Bus interface files 2012-07-02 12:04:38 +03:00
dbus_common_i.h Update license notification in D-Bus interface files 2012-07-02 12:04:38 +03:00
dbus_dict_helpers.c D-Bus: Fix string array dict entry parser in out-of-memory case 2015-01-07 13:19:00 +02:00
dbus_dict_helpers.h D-Bus: Coding style cleanup 2015-01-02 22:50:26 +02:00
dbus_new.c D-Bus: Fix operations when P2P management interface is used 2015-04-29 20:42:25 +03:00
dbus_new.h Add peer certificate alt subject name information to EAP events 2015-01-14 15:45:18 +02:00
dbus_new_handlers.c D-Bus: Fix operations when P2P management interface is used 2015-04-29 20:42:25 +03:00
dbus_new_handlers.h D-Bus: Simplify out-of-memory reporting 2015-01-02 22:50:27 +02:00
dbus_new_handlers_p2p.c D-Bus: Fix operations when P2P management interface is used 2015-04-29 20:42:25 +03:00
dbus_new_handlers_p2p.h D-Bus: Coding style cleanup 2015-01-02 22:50:26 +02:00
dbus_new_handlers_wps.c D-Bus: Fix operations when P2P management interface is used 2015-04-29 20:42:25 +03:00
dbus_new_helpers.c D-Bus: Simplify out-of-memory reporting 2015-01-02 22:50:27 +02:00
dbus_new_helpers.h D-Bus: Coding style cleanup 2015-01-02 22:50:26 +02:00
dbus_new_introspect.c D-Bus: Fix Introspect() in case of os_strdup() failure 2015-01-07 13:19:00 +02:00
dbus_old.c D-Bus: Fix operations when P2P management interface is used 2015-04-29 20:42:25 +03:00
dbus_old.h D-Bus: Coding style cleanup 2015-01-02 22:50:26 +02:00
dbus_old_handlers.c D-Bus: Fix operations when P2P management interface is used 2015-04-29 20:42:25 +03:00
dbus_old_handlers.h D-Bus: Coding style cleanup 2015-01-02 22:50:26 +02:00
dbus_old_handlers_wps.c D-Bus (old): Fix wpsReg error message 2015-01-07 13:19:00 +02:00
fi.epitest.hostap.WPASupplicant.service.in wpa_supplicant: Edit BINDIR in dbus and systemd service files 2011-07-15 12:25:02 +03:00
fi.w1.wpa_supplicant1.service.in wpa_supplicant: Edit BINDIR in dbus and systemd service files 2011-07-15 12:25:02 +03:00
Makefile Add CONFIG_CODE_COVERAGE=y option for gcov 2013-11-24 19:16:12 +02:00