seccomp: Fix documentation

Fix struct seccomp_filter and seccomp_run_filters() signatures.

Signed-off-by: Mickaël Salaün <mic@digikod.net>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: James Morris <jmorris@namei.org>
Cc: Kees Cook <keescook@chromium.org>
Cc: Will Drewry <wad@chromium.org>
Signed-off-by: Kees Cook <keescook@chromium.org>
This commit is contained in:
Mickaël Salaün 2016-09-20 19:39:47 +02:00 committed by Kees Cook
parent 07d9a38068
commit 285fdfc5d9
1 changed files with 3 additions and 4 deletions

View File

@ -41,8 +41,7 @@
* outside of a lifetime-guarded section. In general, this * outside of a lifetime-guarded section. In general, this
* is only needed for handling filters shared across tasks. * is only needed for handling filters shared across tasks.
* @prev: points to a previously installed, or inherited, filter * @prev: points to a previously installed, or inherited, filter
* @len: the number of instructions in the program * @prog: the BPF program to evaluate
* @insnsi: the BPF program instructions to evaluate
* *
* seccomp_filter objects are organized in a tree linked via the @prev * seccomp_filter objects are organized in a tree linked via the @prev
* pointer. For any task, it appears to be a singly-linked list starting * pointer. For any task, it appears to be a singly-linked list starting
@ -168,8 +167,8 @@ static int seccomp_check_filter(struct sock_filter *filter, unsigned int flen)
} }
/** /**
* seccomp_run_filters - evaluates all seccomp filters against @syscall * seccomp_run_filters - evaluates all seccomp filters against @sd
* @syscall: number of the current system call * @sd: optional seccomp data to be passed to filters
* *
* Returns valid seccomp BPF response codes. * Returns valid seccomp BPF response codes.
*/ */