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;