Re: [Ksummit-discuss] [TECH TOPIC] seccomp feature development
Al Viro <[email protected]> Wed, 20 May 2020 19:16:05 +0100
| Newsgroups | org.linuxfoundation.lists.ksummit-discuss,dev.linux.lists.ksummit |
|---|---|
| Message-ID | <[email protected]> |
On Wed, May 20, 2020 at 11:05:58AM -0700, Kees Cook wrote: > On Wed, May 20, 2020 at 05:31:02PM +0100, Al Viro wrote: > > On Wed, May 20, 2020 at 09:17:41AM -0700, Kees Cook wrote: > > > As recently outlined[1], there are are a number of seccomp topics that > > > need discussion: > > > > > > - fd passing > > > - deep argument inspection > > > - changing structure sizes > > > - syscall bitmasks > > > > > > Specifically, seccomp needs to grow the ability to inspect Extensible > > > Argument syscalls, which requires that it inspect userspace memory > > > without Time-of-Check/Time-of-Use races and without double-copying. > > > Additionally, since the structures can grow and be nested, there needs > > > to be a way to > > > > ... catch and kill the bullshit ABI "enhancements" that would attempt that > > kind of garbage. I'm not sure why that is seccomp-related, though... > > We already have structs passed to syscalls that contain pointers to yet > more structs. Do you mean those should be disallowed? (Personally, I > would love that, but this doesn't seem to match the reality of the > design considerations of those syscalls.) We have no chance to kill the existing ones off, but we certainly can stop accepting new ones. I would make an exception for struct iovec arrays passed as an argument, provided that the data they refer to is opaque, and while pselect6() kind of kludges are bloody revolting, they might be inevitable in some cases - not without a very good explanation from their authors, though, and "I wanna have 18 arguments; whaddya mean, don't?!" is not one. _______________________________________________ Ksummit-discuss mailing list [email protected] https://lists.linuxfoundation.org/mailman/listinfo/ksummit-discuss