linux-api.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/4] seccomp: Implement SECCOMP_RET_KILL_PROCESS action
@ 2017-08-11 22:05 Kees Cook
  2017-08-11 22:05 ` [PATCH v4 1/4] seccomp: Rename SECCOMP_RET_KILL to SECCOMP_RET_KILL_THREAD Kees Cook
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Kees Cook @ 2017-08-11 22:05 UTC (permalink / raw)
  To: linux-kernel
  Cc: Kees Cook, Tyler Hicks, Fabricio Voznika, Paul Moore,
	Tycho Andersen, Andy Lutomirski, Will Drewry, Shuah Khan,
	Mathias Svensson, James Morris, linux-security-module, linux-doc,
	linux-api, linux-kselftest

This series is the result of Fabricio, Tyler, Will and I going around a
few times on possible solutions for finding a way to enhance RET_KILL
to kill the process group. There's a lot of ways this could be done,
but I wanted something that felt cleanest. My sense of what constitutes
"clean" has shifted a few times, and after continually running into
weird corner cases, I decided to make changes to the seccomp action mask,
which shouldn't be too invasive to userspace as it turns out. Everything
else becomes much easier, especially after being able to use Tyler's
new SECCOMP_GET_ACTION_AVAIL operation.

This renames SECCOMP_RET_KILL to SECCOMP_RET_KILL_THREAD and adds
SECCOMP_RET_KILL_PROCESS.

Please take a look!

Thanks,

-Kees

v4:
- basically only kept the selftests, tossed everything else
- expanded SECCOMP_RET_ACTION mask into SECCOMP_RET_ACTION_FULL
- renamed SECCOMP_RET_KILL to SECCOMP_RET_KILL_THREAD
- added SECCOMP_RET_KILL_PROCESS as "-1" value, below 0 (RET_KILL)
- use signed tests in the kernel for seccomp actions

v3:
- adjust seccomp_run_filters() to avoid later filters from masking
  kill-process RET_KILL actions (drewry)
- add test for masked RET_KILL.

v2:
- moved kill_process bool into struct padding gap (tyhicks)
- improved comments/docs in various places for clarify (tyhicks)
- use ASSERT_TRUE() for WIFEXITED and WIFSIGNALLED (tyhicks)
- adding Reviewed-bys from tyhicks


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

end of thread, other threads:[~2017-08-14 21:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-11 22:05 [PATCH v4 0/4] seccomp: Implement SECCOMP_RET_KILL_PROCESS action Kees Cook
2017-08-11 22:05 ` [PATCH v4 1/4] seccomp: Rename SECCOMP_RET_KILL to SECCOMP_RET_KILL_THREAD Kees Cook
     [not found] ` <1502489117-70522-1-git-send-email-keescook-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
2017-08-11 22:05   ` [PATCH v4 2/4] seccomp: Introduce SECCOMP_RET_KILL_PROCESS Kees Cook
2017-08-11 22:05 ` [PATCH v4 3/4] seccomp: Implement SECCOMP_RET_KILL_PROCESS action Kees Cook
2017-08-11 22:05 ` [PATCH v4 4/4] selftests/seccomp: Test thread vs process killing Kees Cook
2017-08-14 20:46 ` [PATCH v4 0/4] seccomp: Implement SECCOMP_RET_KILL_PROCESS action Paul Moore
     [not found]   ` <CAHC9VhTeotOHSD+qKG=TF-SidFT0-46GnE_pz=rjGt6gzr1mcw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-08-14 21:10     ` Kees Cook

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).