diff options
Diffstat (limited to 'kernel/seccomp.c')
| -rw-r--r-- | kernel/seccomp.c | 9 | 
1 files changed, 4 insertions, 5 deletions
diff --git a/kernel/seccomp.c b/kernel/seccomp.c index 0db7c8a2afe2..f7ce79a46050 100644 --- a/kernel/seccomp.c +++ b/kernel/seccomp.c @@ -41,8 +41,7 @@   *         outside of a lifetime-guarded section.  In general, this   *         is only needed for handling filters shared across tasks.   * @prev: points to a previously installed, or inherited, filter - * @len: the number of instructions in the program - * @insnsi: the BPF program instructions to evaluate + * @prog: the BPF program to evaluate   *   * 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 @@ -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 - * @syscall: number of the current system call + * seccomp_run_filters - evaluates all seccomp filters against @sd + * @sd: optional seccomp data to be passed to filters   *   * Returns valid seccomp BPF response codes.   */ @@ -195,7 +194,7 @@ static u32 seccomp_run_filters(const struct seccomp_data *sd)  	 * value always takes priority (ignoring the DATA).  	 */  	for (; f; f = f->prev) { -		u32 cur_ret = BPF_PROG_RUN(f->prog, (void *)sd); +		u32 cur_ret = BPF_PROG_RUN(f->prog, sd);  		if ((cur_ret & SECCOMP_RET_ACTION) < (ret & SECCOMP_RET_ACTION))  			ret = cur_ret;  |