Re: [PATCH v6 5/7] fs: Expand __receive_fd() to accept existing fd

2020-07-08 Thread Kees Cook
On Tue, Jul 07, 2020 at 02:38:54PM +0200, Christian Brauner wrote: > On Mon, Jul 06, 2020 at 01:17:18PM -0700, Kees Cook wrote: > > Expand __receive_fd() with support for replace_fd() for the coming seccomp > > "addfd" ioctl(). Add new wrapper receive_fd_replace() for the new behavior > > and updat

Re: [PATCH v6 5/7] fs: Expand __receive_fd() to accept existing fd

2020-07-07 Thread Christian Brauner
On Mon, Jul 06, 2020 at 01:17:18PM -0700, Kees Cook wrote: > Expand __receive_fd() with support for replace_fd() for the coming seccomp > "addfd" ioctl(). Add new wrapper receive_fd_replace() for the new behavior > and update existing wrappers to retain old behavior. > > Thanks to Colin Ian King

[PATCH v6 5/7] fs: Expand __receive_fd() to accept existing fd

2020-07-06 Thread Kees Cook
Expand __receive_fd() with support for replace_fd() for the coming seccomp "addfd" ioctl(). Add new wrapper receive_fd_replace() for the new behavior and update existing wrappers to retain old behavior. Thanks to Colin Ian King for pointing out an uninitialized variable exposure in an earlier ver