linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Semantics of SECCOMP_MODE_STRICT?
@ 2021-06-29 22:54 Eric W. Biederman
  2021-06-30  5:02 ` Aleksa Sarai
  2021-06-30  5:23 ` Kees Cook
  0 siblings, 2 replies; 6+ messages in thread
From: Eric W. Biederman @ 2021-06-29 22:54 UTC (permalink / raw)
  To: linux-api
  Cc: Kees Cook, Andy Lutomirski, Will Drewry, Linus Torvalds, Al Viro,
	Michael Kerrisk, linux-man, linux-kernel


I am the process of cleaning up the process exit path in the kernel, and
as part of that I am looking at the callers of do_exit.  A very
interesting one is __seccure_computing_strict.

Looking at the code is very clear that if a system call is attempted
that is not in the table the thread attempting to execute that system
call is terminated.

Reading the man page for seccomp it says that the process is delivered
SIGKILL.

The practical difference is what happens for multi-threaded
applications.

What are the desired semantics for a multi-threaded application if one
thread attempts to use a unsupported system call?  Should the thread be
terminated or the entire application?

Do we need to fix the kernel, or do we need to fix the manpages?

Thank you,
Eric




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-08-10  2:08 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-29 22:54 Semantics of SECCOMP_MODE_STRICT? Eric W. Biederman
2021-06-30  5:02 ` Aleksa Sarai
2021-06-30  5:23 ` Kees Cook
2021-06-30 20:11   ` [PATCH] seccomp.2: Clarify that bad system calls kill the thread Eric W. Biederman
2021-06-30 23:06     ` Kees Cook
2021-08-10  2:07     ` Michael Kerrisk (man-pages)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).