Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752899AbbGJXRC (ORCPT ); Fri, 10 Jul 2015 19:17:02 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:34343 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752289AbbGJXQy (ORCPT ); Fri, 10 Jul 2015 19:16:54 -0400 Date: Fri, 10 Jul 2015 15:04:47 -0700 From: Greg KH To: Stephen Smalley Cc: David Herrmann , Daniel Mack , Djalal Harouni , lkml , LSM , Paul Osmialowski , Casey Schaufler , Paul Moore Subject: Re: kdbus: credential faking Message-ID: <20150710220447.GA28139@kroah.com> References: <559EBCC0.7040604@tycho.nsa.gov> <559FC7DD.8060507@tycho.nsa.gov> <559FDB04.2010805@tycho.nsa.gov> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <559FDB04.2010805@tycho.nsa.gov> User-Agent: Mutt/1.5.23+89 (0255b37be491) (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2587 Lines: 58 On Fri, Jul 10, 2015 at 10:47:32AM -0400, Stephen Smalley wrote: > On 07/10/2015 09:43 AM, David Herrmann wrote: > > Hi > > > > On Fri, Jul 10, 2015 at 3:25 PM, Stephen Smalley wrote: > >> On 07/09/2015 06:22 PM, David Herrmann wrote: > >>> To be clear, faking metadata has one use-case, and one use-case only: > >>> dbus1 compatibility > >>> > >>> In dbus1, clients connect to a unix-socket placed in the file-system > >>> hierarchy. To avoid breaking ABI for old clients, we support a > >>> unix-kdbus proxy. This proxy is called systemd-bus-proxyd. It is > >>> spawned once for each bus we proxy and simply remarshals messages from > >>> the client to kdbus and vice versa. > >> > >> Is this truly necessary? Can't the distributions just update the client > >> side libraries to use kdbus if enabled and be done with it? Doesn't > >> this proxy undo many of the benefits of using kdbus in the first place? > > > > We need binary compatibility to dbus1. There're millions of > > applications and language bindings with dbus1 compiled in, which we > > cannot suddenly break. > > So, are you saying that there are many applications that statically link > the dbus1 library implementation (thus the distributions can't just push > an updated shared library that switches from using the socket to using > kdbus), and that many of these applications are third party applications > not packaged by the distributions (thus the distributions cannot just do > a mass rebuild to update these applications too)? Yes. There are also programs that use "native" dbus libraries written in other languages than C that use the unix-socket to talk the dbus protocol to the system. As a specific example, Go has one of these libraries, and it's built statically into go binaries, so there is no "system library" that could be updated for these binaries to avoid this interface. I'm sure over time that these libraries will move toward using kdbus "directly" if it is present, but at the moment, we don't have that luxury. > Otherwise, I would think that the use of a socket would just be an > implementation detail and you would be free to change it without > affecting dbus1 library ABI compatibility. I wish we could, but we can't break programs that are currently running today, that would be pretty mean. thanks, greg k-h -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/