Re: [PATCH RESEND 2/2] pidns: Expose task pid_ns_for_children to userspace

2017-03-31 Thread Kirill Tkhai
On 31.03.2017 18:06, Kees Cook wrote: > On Fri, Mar 31, 2017 at 2:45 AM, Kirill Tkhai wrote: >> On 31.03.2017 04:04, Andrei Vagin wrote: >>> On Thu, Mar 30, 2017 at 03:05:20PM -0700, Andrew Morton wrote: On Thu, 30 Mar 2017 13:27:59 +0300 Kirill Tkhai wrote: > pid_ns_for_child

Re: [PATCH RESEND 2/2] pidns: Expose task pid_ns_for_children to userspace

2017-03-31 Thread Kees Cook
On Fri, Mar 31, 2017 at 2:45 AM, Kirill Tkhai wrote: > On 31.03.2017 04:04, Andrei Vagin wrote: >> On Thu, Mar 30, 2017 at 03:05:20PM -0700, Andrew Morton wrote: >>> On Thu, 30 Mar 2017 13:27:59 +0300 Kirill Tkhai >>> wrote: >>> pid_ns_for_children set by a task is known only to the task it

Re: [PATCH RESEND 2/2] pidns: Expose task pid_ns_for_children to userspace

2017-03-31 Thread Kirill Tkhai
On 31.03.2017 04:04, Andrei Vagin wrote: > On Thu, Mar 30, 2017 at 03:05:20PM -0700, Andrew Morton wrote: >> On Thu, 30 Mar 2017 13:27:59 +0300 Kirill Tkhai wrote: >> >>> pid_ns_for_children set by a task is known only to the task itself, >>> and it's impossible to identify it from outside. >>> >>

Re: [PATCH RESEND 2/2] pidns: Expose task pid_ns_for_children to userspace

2017-03-30 Thread Andrei Vagin
On Thu, Mar 30, 2017 at 03:05:20PM -0700, Andrew Morton wrote: > On Thu, 30 Mar 2017 13:27:59 +0300 Kirill Tkhai wrote: > > > pid_ns_for_children set by a task is known only to the task itself, > > and it's impossible to identify it from outside. > > > > It's a big problem for checkpoint/restore

Re: [PATCH RESEND 2/2] pidns: Expose task pid_ns_for_children to userspace

2017-03-30 Thread Andrew Morton
On Thu, 30 Mar 2017 13:27:59 +0300 Kirill Tkhai wrote: > pid_ns_for_children set by a task is known only to the task itself, > and it's impossible to identify it from outside. > > It's a big problem for checkpoint/restore software like CRIU, > because it can't correctly handle tasks, that do set

[PATCH RESEND 2/2] pidns: Expose task pid_ns_for_children to userspace

2017-03-30 Thread Kirill Tkhai
pid_ns_for_children set by a task is known only to the task itself, and it's impossible to identify it from outside. It's a big problem for checkpoint/restore software like CRIU, because it can't correctly handle tasks, that do setns(CLONE_NEWPID) in proccess of their work. This patch solves the