Re: [PATCH v4 2/3] nsproxy: attach to namespaces via pidfds

2020-06-24 Thread Michal Koutný
On Wed, Jun 24, 2020 at 01:54:56PM +0200, Christian Brauner wrote: > Yep, I already have a fix for this in my tree based on a previous > report from LTP. Perfect. (Sorry for the noise then.) Thanks, Michal signature.asc Description: Digital signature

Re: [PATCH v4 2/3] nsproxy: attach to namespaces via pidfds

2020-06-24 Thread Christian Brauner
On Wed, Jun 24, 2020 at 01:44:37PM +0200, Michal Koutný wrote: > Hi. > > On Tue, May 05, 2020 at 04:04:31PM +0200, Christian Brauner > wrote: > > -SYSCALL_DEFINE2(setns, int, fd, int, nstype) > > +SYSCALL_DEFINE2(setns, int, fd, int, flags) > > [...] > > - file = proc_ns_fget(fd); > > - if

Re: [PATCH v4 2/3] nsproxy: attach to namespaces via pidfds

2020-06-24 Thread Michal Koutný
Hi. On Tue, May 05, 2020 at 04:04:31PM +0200, Christian Brauner wrote: > -SYSCALL_DEFINE2(setns, int, fd, int, nstype) > +SYSCALL_DEFINE2(setns, int, fd, int, flags) > [...] > - file = proc_ns_fget(fd); > - if (IS_ERR(file)) > - return PTR_ERR(file); > + int err = 0; >

Re: [PATCH v4 2/3] nsproxy: attach to namespaces via pidfds

2020-05-07 Thread Serge E. Hallyn
On Tue, May 05, 2020 at 04:04:31PM +0200, Christian Brauner wrote: > For quite a while we have been thinking about using pidfds to attach to > namespaces. This patchset has existed for about a year already but we've > wanted to wait to see how the general api would be received and adopted. > Now

[PATCH v4 2/3] nsproxy: attach to namespaces via pidfds

2020-05-05 Thread Christian Brauner
For quite a while we have been thinking about using pidfds to attach to namespaces. This patchset has existed for about a year already but we've wanted to wait to see how the general api would be received and adopted. Now that more and more programs in userspace have started using pidfds for