From b52fa8aec6121c246562a89c640aeb52a3890ef4 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Wed, 29 Aug 2018 20:18:50 +0100 Subject: [PATCH 17/33] fixup! containers: Containers with an Allow policy cannot see well-known names bus_containers_check_can_see_well_known_name: Don't handle DBUS_SERVICE_DBUS Callers of this function have a fast path for DBUS_SERVICE_DBUS anyway. --- bus/containers.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/bus/containers.c b/bus/containers.c index b731fa37..d50f765f 100644 --- a/bus/containers.c +++ b/bus/containers.c @@ -1658,10 +1658,6 @@ bus_containers_check_can_see_well_known_name (DBusConnection *observer, if (instance->has_policy) { - /* The dbus-daemon itself is always visible */ - if (strcmp (name, DBUS_SERVICE_DBUS) == 0) - return TRUE; - /* TODO: Have a policy by which containers can optionally see * (and own) well-known names */ return FALSE; -- 2.19.0.rc1