Re: [PATCH RESEND] android: binder: Sanity check at binder ioctl

2016-01-19 Thread chenfeng
On 2016/1/19 16:35, Greg KH wrote: > On Tue, Jan 19, 2016 at 03:49:27PM +0800, chenfeng wrote: >> >> >> On 2016/1/19 15:33, Greg KH wrote: >>> On Tue, Jan 19, 2016 at 11:45:36AM +0800, Chen Feng wrote: When a process fork a child process, we should not allow the child process use the bi

Re: [PATCH RESEND] android: binder: Sanity check at binder ioctl

2016-01-19 Thread Greg KH
On Tue, Jan 19, 2016 at 03:49:27PM +0800, chenfeng wrote: > > > On 2016/1/19 15:33, Greg KH wrote: > > On Tue, Jan 19, 2016 at 11:45:36AM +0800, Chen Feng wrote: > >> When a process fork a child process, we should not allow the > >> child process use the binder which opened by parent process. > >

Re: [PATCH RESEND] android: binder: Sanity check at binder ioctl

2016-01-18 Thread chenfeng
On 2016/1/19 15:33, Greg KH wrote: > On Tue, Jan 19, 2016 at 11:45:36AM +0800, Chen Feng wrote: >> When a process fork a child process, we should not allow the >> child process use the binder which opened by parent process. >> >> But if the binder-object creater is a thread of one process who exi

Re: [PATCH RESEND] android: binder: Sanity check at binder ioctl

2016-01-18 Thread Greg KH
On Tue, Jan 19, 2016 at 11:45:36AM +0800, Chen Feng wrote: > When a process fork a child process, we should not allow the > child process use the binder which opened by parent process. > > But if the binder-object creater is a thread of one process who exit, > the other thread can also use this bi

[PATCH RESEND] android: binder: Sanity check at binder ioctl

2016-01-18 Thread Chen Feng
When a process fork a child process, we should not allow the child process use the binder which opened by parent process. But if the binder-object creater is a thread of one process who exit, the other thread can also use this binder-object normally. We can distinguish this by the member proc->tsk