From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Beller Subject: Re: [PATCH 2/2] binder: implement namepsace support for Android binder driver Date: Sun, 22 Dec 2013 11:38:06 +0100 Message-ID: <52B6C10E.3070002@googlemail.com> References: <45c5d62a35f19228a681f5be9834741baabfdb0d.1387706794.git.orenl@cellrox.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <45c5d62a35f19228a681f5be9834741baabfdb0d.1387706794.git.orenl-3AfRa/s5aFdBDgjK7y7TUQ@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Oren Laadan , Greg Kroah-Hartman Cc: Linux Containers , linux-kernel , =?ISO-8859-1?Q?Arve_Hj=F8nnev=E5?= =?ISO-8859-1?Q?g?= , Eric Biederman , lxc-devel List-Id: containers.vger.kernel.org > #include > #include > #include > +#include > #include > > #include "binder.h" > #include "binder_trace.h" > > +/* > + * Using a private context manager for each binder namespace is sufficient > + * to isolate between namespaces, because in binder all IPC must be realized > + * via hanldes obtained from the context manager. handles > + * > + * TODO: currently, most debugfs data is not tracked per binder namespaces. > + * Except for "procs" which are properly virtualized, everything else is > + * global, including stats, logs, and dead nodes. > + */ > +struct binder_namespace { > + struct kref kref; > + > + struct binder_node *context_mgr_node; > + kuid_t context_mgr_uid; > + int last_id; From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754499Ab3LVKiM (ORCPT ); Sun, 22 Dec 2013 05:38:12 -0500 Received: from mail-ea0-f170.google.com ([209.85.215.170]:51732 "EHLO mail-ea0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752697Ab3LVKiK (ORCPT ); Sun, 22 Dec 2013 05:38:10 -0500 Message-ID: <52B6C10E.3070002@googlemail.com> Date: Sun, 22 Dec 2013 11:38:06 +0100 From: Stefan Beller User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Oren Laadan , Greg Kroah-Hartman CC: Linux Containers , linux-kernel , lxc-devel , Serge Hallyn , Eric Biederman , =?ISO-8859-1?Q?Arve_Hj=F8nnev=E5?= =?ISO-8859-1?Q?g?= , Amir Goldstein Subject: Re: [PATCH 2/2] binder: implement namepsace support for Android binder driver References: <45c5d62a35f19228a681f5be9834741baabfdb0d.1387706794.git.orenl@cellrox.com> In-Reply-To: <45c5d62a35f19228a681f5be9834741baabfdb0d.1387706794.git.orenl@cellrox.com> X-Enigmail-Version: 1.5.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > #include > #include > #include > +#include > #include > > #include "binder.h" > #include "binder_trace.h" > > +/* > + * Using a private context manager for each binder namespace is sufficient > + * to isolate between namespaces, because in binder all IPC must be realized > + * via hanldes obtained from the context manager. handles > + * > + * TODO: currently, most debugfs data is not tracked per binder namespaces. > + * Except for "procs" which are properly virtualized, everything else is > + * global, including stats, logs, and dead nodes. > + */ > +struct binder_namespace { > + struct kref kref; > + > + struct binder_node *context_mgr_node; > + kuid_t context_mgr_uid; > + int last_id;