Re: [PATCH 2/2] binder: implement namepsace support for Android binder driver

2014-01-08 Thread Greg Kroah-Hartman
On Sun, Dec 22, 2013 at 05:07:40AM -0500, Oren Laadan wrote: > Add namespaces support for the Android binder driver. > As binder is an IPC mechanism, tie its namespace to IPC_NS. Why does binder need namespace support? Does the Android userspace code support this? I need an ack from the Android

Re: [PATCH 2/2] binder: implement namepsace support for Android binder driver

2014-01-08 Thread Greg Kroah-Hartman
On Sun, Dec 22, 2013 at 05:07:40AM -0500, Oren Laadan wrote: Add namespaces support for the Android binder driver. As binder is an IPC mechanism, tie its namespace to IPC_NS. Why does binder need namespace support? Does the Android userspace code support this? I need an ack from the Android

Re: [PATCH 2/2] binder: implement namepsace support for Android binder driver

2013-12-22 Thread Stefan Beller
> #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 > + *

[PATCH 2/2] binder: implement namepsace support for Android binder driver

2013-12-22 Thread Oren Laadan
Add namespaces support for the Android binder driver. As binder is an IPC mechanism, tie its namespace to IPC_NS. In binder, the first process to call BINDER_SET_CONTEXT_MGR ioctl becomes the manager with context 0, and thereafter IPC is realized through binder handles obtained from this manager.

[PATCH 2/2] binder: implement namepsace support for Android binder driver

2013-12-22 Thread Oren Laadan
Add namespaces support for the Android binder driver. As binder is an IPC mechanism, tie its namespace to IPC_NS. In binder, the first process to call BINDER_SET_CONTEXT_MGR ioctl becomes the manager with context 0, and thereafter IPC is realized through binder handles obtained from this manager.

Re: [PATCH 2/2] binder: implement namepsace support for Android binder driver

2013-12-22 Thread Stefan Beller
#include linux/uaccess.h #include linux/vmalloc.h #include linux/slab.h +#include linux/ipc_namespace.h #include linux/pid_namespace.h #include binder.h #include binder_trace.h +/* + * Using a private context manager for each binder namespace is sufficient + * to isolate