History log of /sssd-io/src/sbus/sssd_dbus_interface.c
Revision Date Author Comments Expand
35186217d44d0138a1aedf7a4db72249b2c40e66 12-Apr-2017 Sumit Bose <sbose@redhat.com>

sbus: check connection for NULL before unregister it There seem to be code paths where the data is a added to the hash before the connection is properly initialized, to avoid core dump during shut down we only call dbus_conection_unregister_object_path() if there is a connection. Resolves: https://pagure.io/SSSD/sssd/issue/3367 Reviewed-by: Pavel Březina <pbrezina@redhat.com>

ea872f140a04419fba3f2b9722da74d7fd1ca1ee 01-Feb-2017 Pavel Březina <pbrezina@redhat.com>

SBUS: use sss_ptr_hash for nodes table This patch reuses sss_ptr_hash module introduced in NSS patches in sbus code. Reviewed-by: Fabiano Fidêncio <fidencio@redhat.com>

a3b2bc38263191f23eba2ad98470d8ecd016a60b 01-Feb-2017 Pavel Březina <pbrezina@redhat.com>

SBUS: use sss_ptr_hash for opath table This patch reuses sss_ptr_hash module introduced in NSS patches in sbus code. Reviewed-by: Fabiano Fidêncio <fidencio@redhat.com>

b46c4c0d3e364636af1b42683cd3229ffa0b77cb 23-Jan-2017 Fabiano Fidêncio <fidencio@redhat.com>

SBUS: Add a time_t pointer to the sbus_connection The idea of this commit is to provide a way to update the time of the last request coming from/going to the responders through sbus. For now it's not used anywhere as all the functions that will pass their time_t to the sbus_connection are currently passing NULL. It will be used by follow-up patches. Related: https://fedorahosted.org/sssd/ticket/3245 Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com> Reviewed-by: Pavel Březina <pbrezina@redhat.com> Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

397bc52dd09a8c032abc7ea47a6d81dba5957464 20-Jun-2016 Pavel Březina <pbrezina@redhat.com>

SBUS: Add sbus_conn_register_iface_map Reviewed-by: Sumit Bose <sbose@redhat.com> Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

f7adbb15dbdcb79e291f7cf361a400ce25f7b382 18-Jun-2015 Pavel Březina <pbrezina@redhat.com>

SBUS: Add support for <node /> in introspection Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

10a28f461c25d788ff4dcffefa881e7aa724a25d 22-May-2015 Pavel Březina <pbrezina@redhat.com>

sbus: add sbus_opath_decompose[_exact] This function decomposes object path into array of strings. The "_exact" version expects a certain number of parts otherwise an error is thrown. Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

6170f00ee24ce38af656683e0ab8915abbf93bad 11-May-2015 Pavel Reichl <preichl@redhat.com>

sbus: sbus_opath_hash_add_iface free tmp talloc ctx Reviewed-by: Pavel Březina <pbrezina@redhat.com>

ca6dd8e7ac91c7f8e3b4d55206d4f39791ab7149 23-Jan-2015 Pavel Březina <pbrezina@redhat.com>

sbus: add sbus_opath_get_object_name() This function assumes that the last component of the object path is an object name. It will return the part unescaped. Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

3a8f6b575f4019f21c9425a26f1b346c08a197ae 23-Jan-2015 Pavel Březina <pbrezina@redhat.com>

sbus: move common opath functions from ifp to sbus code These functions are quite general thus they may be part of sbus interface. Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

66277b21179d95f6e96abed01a20ccbccf27ce99 23-Jan-2015 Pavel Březina <pbrezina@redhat.com>

sbus: unify naming of handler data variable We used three different names to express handler data: - pvt - instace_data - handler_data Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

b742179ac0790068380618ab72a06af18544f09c 23-Jan-2015 Pavel Březina <pbrezina@redhat.com>

sbus: support org.freedesktop.DBus.Properties Bring back org.freedesktop.DBus.Properties with support of multiple interfaces on single object path. Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

80d0bd38268c02fd32f62b02ae59f19229ca1a79 23-Jan-2015 Pavel Březina <pbrezina@redhat.com>

sbus: support org.freedesktop.DBus.Introspectable This commit brings back support of Introspectable interface and enables support of multiple interfaces there. It also refactors the old code so the generator and introspect xml format especially is more readable. Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

21e05273eed8cc914871938061554589883e67ce 23-Jan-2015 Pavel Březina <pbrezina@redhat.com>

sbus: add sbus_opath_hash_lookup_supported() This function acquires list of all interfaces that are supported on given object path. It is a preparation for Introspect interface. Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

46ee931314e6a5517f5c6b6b14f759364be119cc 23-Jan-2015 Pavel Březina <pbrezina@redhat.com>

sbus: support multiple interfaces on single path This patch removes the old message handler which is replaced with a new one that supports multiple interfaces registered on single object path. A hash table is used to store registered object paths and their interfaces. When an entry or the table itself is destroyed, registered object path is unregistered through delete callback. It temporarily removes support of Introspect and Properties standard D-Bus interfaces and disables unit tests of those interfaces. The support is brought back by following patches. Resolves: https://fedorahosted.org/sssd/ticket/2339 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

894f09f146f0c9cda9e0f7dfe1916519d73dde72 23-Jan-2015 Pavel Březina <pbrezina@redhat.com>

sbus: use 'path/*' to represent a D-Bus fallback Use 'path/*' instead of 'path*' since it better describes what we are actually doing i.e. registering a message handler for a subtree. Although D-Bus fallback will invoke a message handler for both 'path' and 'path/subtree' object paths it does not make usually sence to support the same interfaces for both parent and it children. This commit also renames related functions to better describe what are they doing. Note: the tilda in comments is used to suppress -Wcomment warning Preparation for: https://fedorahosted.org/sssd/ticket/2339 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

d87e960c17d7598781cf032d06ba03a3ecadbfa2 23-Jan-2015 Pavel Březina <pbrezina@redhat.com>

sbus: move iface and object path code to separate file This is done to better distinguish between connection code and interface stuff. It will help with orientation and thus simplify next changes. Preparation for: https://fedorahosted.org/sssd/ticket/2339 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>