Skip to content

Commit 4fadd04

Browse files
l0kodkees
authored andcommitted
seccomp: Remove 2-phase API documentation
Fixes: 8112c4f ("seccomp: remove 2-phase API") Signed-off-by: Mickaël Salaün <mic@digikod.net> Acked-by: Kees Cook <keescook@chromium.org> Cc: Andy Lutomirski <luto@kernel.org> Cc: James Morris <jmorris@namei.org> Signed-off-by: James Morris <james.l.morris@oracle.com> Signed-off-by: Kees Cook <keescook@chromium.org>
1 parent ce29856 commit 4fadd04

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

‎arch/Kconfig‎

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -336,17 +336,6 @@ config HAVE_ARCH_SECCOMP_FILTER
336336
results in the system call being skipped immediately.
337337
- seccomp syscall wired up
338338

339-
For best performance, an arch should use seccomp_phase1 and
340-
seccomp_phase2 directly. It should call seccomp_phase1 for all
341-
syscalls if TIF_SECCOMP is set, but seccomp_phase1 does not
342-
need to be called from a ptrace-safe context. It must then
343-
call seccomp_phase2 if seccomp_phase1 returns anything other
344-
than SECCOMP_PHASE1_OK or SECCOMP_PHASE1_SKIP.
345-
346-
As an additional optimization, an arch may provide seccomp_data
347-
directly to seccomp_phase1; this avoids multiple calls
348-
to the syscall_xyz helpers for every syscall.
349-
350339
config SECCOMP_FILTER
351340
def_bool y
352341
depends on HAVE_ARCH_SECCOMP_FILTER && SECCOMP && NET

0 commit comments

Comments
 (0)