]> git.baikalelectronics.ru Git - kernel.git/commit
seccomp: Add find_notification helper
authorSargun Dhillon <sargun@sargun.me>
Mon, 1 Jun 2020 11:25:32 +0000 (04:25 -0700)
committerKees Cook <keescook@chromium.org>
Fri, 10 Jul 2020 23:01:51 +0000 (16:01 -0700)
commited1acda3a9f1c4c7ad1ac58836094b26bbdf8f81
tree2662a851bf5bb5829349aebc2af6e36d0a787187
parentea125b586578cc4e1c61c8d05bd0400f1018b16c
seccomp: Add find_notification helper

This adds a helper which can iterate through a seccomp_filter to
find a notification matching an ID. It removes several replicated
chunks of code.

Signed-off-by: Sargun Dhillon <sargun@sargun.me>
Acked-by: Christian Brauner <christian.brauner@ubuntu.com>
Reviewed-by: Tycho Andersen <tycho@tycho.ws>
Cc: Matt Denton <mpdenton@google.com>
Cc: Kees Cook <keescook@google.com>,
Cc: Jann Horn <jannh@google.com>,
Cc: Robert Sesek <rsesek@google.com>,
Cc: Chris Palmer <palmer@google.com>
Cc: Christian Brauner <christian.brauner@ubuntu.com>
Cc: Tycho Andersen <tycho@tycho.ws>
Link: https://lore.kernel.org/r/20200601112532.150158-1-sargun@sargun.me
Signed-off-by: Kees Cook <keescook@chromium.org>
kernel/seccomp.c