linux-api.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v6 0/9] seccomp: add thread sync ability
@ 2014-06-10 23:01 Kees Cook
  2014-06-10 23:01 ` [PATCH v6 1/9] seccomp: create internal mode-setting function Kees Cook
                   ` (8 more replies)
  0 siblings, 9 replies; 11+ messages in thread
From: Kees Cook @ 2014-06-10 23:01 UTC (permalink / raw)
  To: linux-kernel
  Cc: Kees Cook, Andy Lutomirski, Oleg Nesterov, Will Drewry,
	Julien Tinnes, David Drysdale, Alexei Starovoitov, John Johansen,
	Russell King, Ralf Baechle, Thomas Gleixner, Ingo Molnar,
	H. Peter Anvin, Alexander Viro, Peter Zijlstra, Arnd Bergmann,
	James Morris, Andrew Morton, Frederic Weisbecker, David A. Long

This adds the ability for threads to request seccomp filter
synchronization across their thread group (at filter attach time).
For example, for Chrome to make sure graphic driver threads are fully
confined after seccomp filters have been attached.

To support this, locking on seccomp changes is introduced, along with
refactoring of no_new_privs. Races with thread creation/death are handled
via tasklist_lock.

This includes a new syscall (instead of adding a new prctl option),
as suggested by Andy Lutomirski and Michael Kerrisk.

Thanks!

-Kees

v6:
 - switch from seccomp-specific lock to thread-group lock to gain atomicity
 - implement seccomp syscall across all architectures with seccomp filter
 - clean up sparse warnings around locking
v5:
 - move includes around (drysdale)
 - drop set_nnp return value (luto)
 - use smp_load_acquire/store_release (luto)
 - merge nnp changes to seccomp always, fewer ifdef (luto)
v4:
 - cleaned up locking further, as noticed by David Drysdale
v3:
 - added SECCOMP_EXT_ACT_FILTER for new filter install options
v2:
 - reworked to avoid clone races

^ permalink raw reply	[flat|nested] 11+ messages in thread
* [PATCH v6 0/9] seccomp: add thread sync ability
@ 2014-06-11  3:25 Kees Cook
  2014-06-11  3:25 ` [PATCH v6 1/9] seccomp: create internal mode-setting function Kees Cook
  0 siblings, 1 reply; 11+ messages in thread
From: Kees Cook @ 2014-06-11  3:25 UTC (permalink / raw)
  To: linux-kernel
  Cc: Kees Cook, Andy Lutomirski, Oleg Nesterov, Will Drewry,
	Julien Tinnes, David Drysdale, Alexei Starovoitov, John Johansen,
	Andrew Morton, x86, linux-arm-kernel, linux-mips, linux-api,
	linux-arch, linux-security-module

[re-send with smaller CC list]

This adds the ability for threads to request seccomp filter
synchronization across their thread group (at filter attach time).
For example, for Chrome to make sure graphic driver threads are fully
confined after seccomp filters have been attached.

To support this, locking on seccomp changes is introduced, along with
refactoring of no_new_privs. Races with thread creation/death are handled
via tasklist_lock.

This includes a new syscall (instead of adding a new prctl option),
as suggested by Andy Lutomirski and Michael Kerrisk.

Thanks!

-Kees

v6:
 - switch from seccomp-specific lock to thread-group lock to gain atomicity
 - implement seccomp syscall across all architectures with seccomp filter
 - clean up sparse warnings around locking
v5:
 - move includes around (drysdale)
 - drop set_nnp return value (luto)
 - use smp_load_acquire/store_release (luto)
 - merge nnp changes to seccomp always, fewer ifdef (luto)
v4:
 - cleaned up locking further, as noticed by David Drysdale
v3:
 - added SECCOMP_EXT_ACT_FILTER for new filter install options
v2:
 - reworked to avoid clone races

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

end of thread, other threads:[~2014-06-11  3:25 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-10 23:01 [PATCH v6 0/9] seccomp: add thread sync ability Kees Cook
2014-06-10 23:01 ` [PATCH v6 1/9] seccomp: create internal mode-setting function Kees Cook
2014-06-10 23:01 ` [PATCH v6 2/9] seccomp: split filter prep from check and apply Kees Cook
2014-06-10 23:01 ` [PATCH v6 3/9] seccomp: introduce writer locking Kees Cook
2014-06-10 23:01 ` [PATCH v6 4/9] seccomp: move no_new_privs into seccomp Kees Cook
2014-06-10 23:01 ` [PATCH v6 5/9] seccomp: split mode set routines Kees Cook
2014-06-10 23:01 ` [PATCH v6 6/9] seccomp: add "seccomp" syscall Kees Cook
2014-06-10 23:01 ` [PATCH v6 7/9] seccomp: implement SECCOMP_FILTER_FLAG_TSYNC Kees Cook
2014-06-10 23:01 ` [PATCH v6 8/9] ARM: add seccomp syscall Kees Cook
2014-06-10 23:01 ` [PATCH v6 9/9] MIPS: " Kees Cook
  -- strict thread matches above, loose matches on Subject: below --
2014-06-11  3:25 [PATCH v6 0/9] seccomp: add thread sync ability Kees Cook
2014-06-11  3:25 ` [PATCH v6 1/9] seccomp: create internal mode-setting function 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).