From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754720AbcJOQcQ (ORCPT ); Sat, 15 Oct 2016 12:32:16 -0400 Received: from smtp-sh2.infomaniak.ch ([128.65.195.6]:36076 "EHLO smtp-sh2.infomaniak.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751947AbcJOQcL (ORCPT ); Sat, 15 Oct 2016 12:32:11 -0400 Subject: Re: [PATCH v1] seccomp: Fix documentation To: linux-kernel@vger.kernel.org References: <20160920173947.8684-1-mic@digikod.net> Cc: Andy Lutomirski , James Morris , Kees Cook , Will Drewry From: =?UTF-8?Q?Micka=c3=abl_Sala=c3=bcn?= Message-ID: <580259F3.5040309@digikod.net> Date: Sat, 15 Oct 2016 18:31:47 +0200 User-Agent: MIME-Version: 1.0 In-Reply-To: <20160920173947.8684-1-mic@digikod.net> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="VHowg0gPPfvLfw8WhPDwgmXfqPglfwq1D" X-Antivirus: Dr.Web (R) for Unix mail servers drweb plugin ver.6.0.2.8 X-Antivirus-Code: 0x100000 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --VHowg0gPPfvLfw8WhPDwgmXfqPglfwq1D Content-Type: multipart/mixed; boundary="MtEdEXpwPumGKd5CKWMAv2hOl7aQj45Ma"; protected-headers="v1" From: =?UTF-8?Q?Micka=c3=abl_Sala=c3=bcn?= To: linux-kernel@vger.kernel.org Cc: Andy Lutomirski , James Morris , Kees Cook , Will Drewry Message-ID: <580259F3.5040309@digikod.net> Subject: Re: [PATCH v1] seccomp: Fix documentation References: <20160920173947.8684-1-mic@digikod.net> In-Reply-To: <20160920173947.8684-1-mic@digikod.net> --MtEdEXpwPumGKd5CKWMAv2hOl7aQj45Ma Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Could someone push this please? On 20/09/2016 19:39, Micka=C3=ABl Sala=C3=BCn wrote: > Fix struct seccomp_filter and seccomp_run_filters() signatures. >=20 > Signed-off-by: Micka=C3=ABl Sala=C3=BCn > Cc: Andy Lutomirski > Cc: James Morris > Cc: Kees Cook > Cc: Will Drewry > --- > kernel/seccomp.c | 7 +++---- > 1 file changed, 3 insertions(+), 4 deletions(-) >=20 > diff --git a/kernel/seccomp.c b/kernel/seccomp.c > index 0db7c8a2afe2..494cba230ca0 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 start= ing > @@ -168,8 +167,8 @@ static int seccomp_check_filter(struct sock_filter = *filter, unsigned int flen) > } > =20 > /** > - * seccomp_run_filters - evaluates all seccomp filters against @syscal= l > - * @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. > */ >=20 --MtEdEXpwPumGKd5CKWMAv2hOl7aQj45Ma-- --VHowg0gPPfvLfw8WhPDwgmXfqPglfwq1D Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBCgAGBQJYAln0AAoJECLe/t9zvWqVON4H/2frwTApxTq2cimqHMcu3LrJ IlZz+JgyMeJicQ8rA+a/ZFtwDDGCBhokXmtpLj1rG/l0YfWo06Gotx1Ji9UuY4ej AdhF8uIbt51Ymd8sNY0/amV++wgwhXAPZwGUdv/8C3/wen5HHhfogR/wBX0I/4Xt cIgRHMGpkTLV9eLS6hf5UVvxuCGjUXZqgbFxmh2ZFPakVUwQzQ/7QxCN0H4CaayW 8RyaVJXGk8IImJwD4woiH4ZgeM6GvJy4ZRZ50jTFK6Q3mcUZQ9jgMrUm33jNleGb 5S6psHefhG1F9Aos8LDZQOCDDDtTr6UWnQN30w5/GAV7qbta3j98ESfPLzyahzg= =e422 -----END PGP SIGNATURE----- --VHowg0gPPfvLfw8WhPDwgmXfqPglfwq1D--