Re: [PATCH v7 3/7] kernel: Implement selective syscall userspace redirection

From: Andy Lutomirski
Date: Sat Nov 21 2020 - 23:09:16 EST


On Fri, Nov 20, 2020 at 4:18 PM Kees Cook <keescook@xxxxxxxxxxxx> wrote:
>
> On Thu, Nov 19, 2020 at 12:43:05PM -0500, Gabriel Krisman Bertazi wrote:
> > The existing interface could be extended with a flags field as part of
> > the opcode passed in argument 2, which is currently reserved, and then
> > return a FD, just like seccomp(2) does. So it is not like the current
> > patches couldn't be extended in the future if needed, unless I'm
> > mistaken.
>
> Yes, I'd prefer this series go in as-is, and if there is a need for
> extending the API, arg2 can have more values added.

I agree.



>
> --
> Kees Cook