summaryrefslogtreecommitdiff
path: root/bus/stats.c
diff options
context:
space:
mode:
authorSimon McVittie <smcv@collabora.com>2017-05-31 18:20:25 +0100
committerSimon McVittie <smcv@collabora.com>2017-06-02 10:43:29 +0100
commit093ec67b8f0e0117f614adf262042531e0be4edf (patch)
tree4a93105e30f62ff34f086f0db5f9c891e68e0ebc /bus/stats.c
parent36893e76c43c2e9b5283e8dce787afd4bfbd4ffb (diff)
bus/driver: Make non-core interfaces unavailable on most object paths
The o.fd.DBus interface needs to remain available on arbitrary object paths for backwards compatibility, and the Introspectable interface is genuinely useful, but everything else can be skipped. This is arguably an incompatible change for the undocumented Verbose interface, and for the GetAllMatchRules method on the undocumented Stats interface: previously those were available at all object paths. Reviewed-by: Philip Withnall <withnall@endlessm.com> [smcv: Adjust comments, enum order, variable naming as per Philip's review] Signed-off-by: Simon McVittie <smcv@collabora.com> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=101256
Diffstat (limited to 'bus/stats.c')
-rw-r--r--bus/stats.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/bus/stats.c b/bus/stats.c
index dace0e29d..065a09d5e 100644
--- a/bus/stats.c
+++ b/bus/stats.c
@@ -51,9 +51,6 @@ bus_stats_handle_get_stats (DBusConnection *connection,
_DBUS_ASSERT_ERROR_IS_CLEAR (error);
- if (!bus_driver_check_message_is_for_us (message, error))
- return FALSE;
-
context = bus_transaction_get_context (transaction);
connections = bus_context_get_connections (context);
@@ -136,9 +133,6 @@ bus_stats_handle_get_connection_stats (DBusConnection *caller_connection,
_DBUS_ASSERT_ERROR_IS_CLEAR (error);
- if (!bus_driver_check_message_is_for_us (message, error))
- return FALSE;
-
registry = bus_connection_get_registry (caller_connection);
if (! dbus_message_get_args (message, error,