Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1633471
| Path | csiph.com!goblin3!goblin.stu.neva.ru!news.redatomik.org!aioe.org!news.servidellagleba.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | Kees Cook <keescook@chromium.org> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v1] selftests: Make test_harness.h more generally available |
| Date | Sun, 30 Apr 2017 19:40:01 +0200 |
| Message-ID | <tC0Zb-65x-9@gated-at.bofh.it> (permalink) |
| References | <tBW9b-3ah-1@gated-at.bofh.it> |
| X-Original-To | Mickaël Salaün <mic@digikod.net>, Shuah Khan <shuah@kernel.org> |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=rkO7UwWyM1Xj/CqUf/UHjqbdEStrLEleUYJe6zKzfc8=; b=D55j6hwrJw/Pe9dw82uFEYfa5a5SzDNAKaO5PwlEJaVm+1woxzAtekJL7kDlldiFdD nfNZ9VX41O5e5ld0n3Ayl8Kc38an/rTi6TSCeuKCLVn9atLzjrvnXztciYX+y3/u80hs m7moVjRlnbf4nXrTauOVuH4MPuF2bpXhLNmmBNDSDludCvN3H9JqeMUUbY09CBhL5/b+ Y6X2WhxwslJ8DAEUe5xgQRzm39nKVHh6+7FcUxZVEciuJyk5sYVszsO1v7DSjSEnOIuJ m8aVQ6hMNFLw7Yha3zVbiYtVnMhhmVp/fbTnsorqOTkTxUemoLotRbjTY28KkjB4SXwc 508g== |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=rkO7UwWyM1Xj/CqUf/UHjqbdEStrLEleUYJe6zKzfc8=; b=Q4pF558HOemjQCn8K40+xz3je0QAQoonh1GFkJXsDZnoLauM5C2KIWjLrvMEGx2JPV 5xvj397GAk82qJ0vysaFkzknUamnduUYaSG1cI6PNBFEy1c1BQexWn96buwEae4bvxFw 7Gmy3E/tTCqbZABTWXl13RW03uekNxB1UKPX0= |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-transfer-encoding; bh=rkO7UwWyM1Xj/CqUf/UHjqbdEStrLEleUYJe6zKzfc8=; b=TntqMxYqay+hQBZFy0uVFcY8Y5uOLWwir92FCVpjiolUr33+DiNcC3+EJlR9NVPahH yV6oDyVz7J/cJdMJMZuB2h0mix3hAXQhtKU6nYarHI1mH0oRbaHD67l1wrGwIAMNjduC 0YxswTHM8yviYTutd9EjA0AEIcXfkQWCPA/F/YFtVLrxEUBcafxY1tht7j8zZrD/xRFO 7lYVf7xBKqMq7g/0RDJip1AhZxNzWGSeUv1wyH4rsE6ba5d0dcelJY9f3qA3ltr+8tYT 2V/b1dwpeQTZk4OrU4bwT18lKFn9lnEt4ANbL8nxKsZdkNofzlMtFETHRUzyvo+6DTUA A+3A== |
| X-Gm-Message-State | AN3rC/63dJ5k0mq8veYCrVSIv8UaWV+SfrZJl+WzPHjDPKQDm6ZIBHbU CoKAwzIAJ0H7jDBbkYDag0/ac/geS9VA |
| X-Received | by 10.36.58.14 with SMTP id m14mr18013854itm.26.1493573946204; Sun, 30 Apr 2017 10:39:06 -0700 (PDT) |
| MIME-Version | 1.0 |
| X-Google-Sender-Auth | Wca9mYpQeN3-vRN7puDJVLxzRMc |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | quoted-printable |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 57 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | LKML <linux-kernel@vger.kernel.org>, Andy Lutomirski <luto@amacapital.net>, Will Drewry <wad@chromium.org>, linux-kselftest@vger.kernel.org |
| X-Original-Date | Sun, 30 Apr 2017 10:39:05 -0700 |
| X-Original-Message-ID | <CAGXu5j+ShwrMObKSfQZbNgqqaniPTjmbXGLMOzGO2M_Twfp=1Q@mail.gmail.com> |
| X-Original-References | <20170430122619.31407-1-mic@digikod.net> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1633471 |
Show key headers only | View raw
On Sun, Apr 30, 2017 at 5:26 AM, Mickaël Salaün <mic@digikod.net> wrote:
> The seccomp/test_harness.h file contains useful helpers to build tests.
> Moving it to the selftest directory should benefit to other test
> components.
Unless Shuah thinks this should live in a new include/ directory, this
looks fine to me.
Acked-by: Kees Cook <keescook@chromium.org>
Thanks!
-Kees
>
> Signed-off-by: Mickaël Salaün <mic@digikod.net>
> Cc: Andy Lutomirski <luto@amacapital.net>
> Cc: Kees Cook <keescook@chromium.org>
> Cc: Shuah Khan <shuah@kernel.org>
> Cc: Will Drewry <wad@chromium.org>
> Link: https://lkml.kernel.org/r/CAGXu5j+8CVz8vL51DRYXqOY=xc3zuKFf=PTENe88XYHzFYidUQ@mail.gmail.com
> ---
> tools/testing/selftests/seccomp/seccomp_bpf.c | 2 +-
> tools/testing/selftests/{seccomp => }/test_harness.h | 0
> 2 files changed, 1 insertion(+), 1 deletion(-)
> rename tools/testing/selftests/{seccomp => }/test_harness.h (100%)
>
> diff --git a/tools/testing/selftests/seccomp/seccomp_bpf.c b/tools/testing/selftests/seccomp/seccomp_bpf.c
> index 03f1fa495d74..d7095ff58e72 100644
> --- a/tools/testing/selftests/seccomp/seccomp_bpf.c
> +++ b/tools/testing/selftests/seccomp/seccomp_bpf.c
> @@ -37,7 +37,7 @@
> #include <unistd.h>
> #include <sys/syscall.h>
>
> -#include "test_harness.h"
> +#include "../test_harness.h"
>
> #ifndef PR_SET_PTRACER
> # define PR_SET_PTRACER 0x59616d61
> diff --git a/tools/testing/selftests/seccomp/test_harness.h b/tools/testing/selftests/test_harness.h
> similarity index 100%
> rename from tools/testing/selftests/seccomp/test_harness.h
> rename to tools/testing/selftests/test_harness.h
> --
> 2.11.0
>
--
Kees Cook
Pixel Security
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v1] selftests: Make test_harness.h more generally available Mickaël Salaün <mic@digikod.net> - 2017-04-30 14:30 +0200
Re: [PATCH v1] selftests: Make test_harness.h more generally available Kees Cook <keescook@chromium.org> - 2017-04-30 19:40 +0200
Re: [PATCH v1] selftests: Make test_harness.h more generally available Will Drewry <wad@chromium.org> - 2017-04-30 20:30 +0200
Re: [PATCH v1] selftests: Make test_harness.h more generally available Mickaël Salaün <mic@digikod.net> - 2017-05-01 17:50 +0200
Re: [PATCH v1] selftests: Make test_harness.h more generally available Shuah Khan <shuah@kernel.org> - 2017-05-01 21:30 +0200
csiph-web