|
Message-Id: <1458788042-26173-5-git-send-email-mic@digikod.net> Date: Thu, 24 Mar 2016 03:53:58 +0100 From: Mickaël Salaün <mic@...ikod.net> To: linux-security-module@...r.kernel.org Cc: Mickaël Salaün <mic@...ikod.net>, Andreas Gruenbacher <agruenba@...hat.com>, Andy Lutomirski <luto@...capital.net>, Andy Lutomirski <luto@...nel.org>, Arnd Bergmann <arnd@...db.de>, Casey Schaufler <casey@...aufler-ca.com>, Daniel Borkmann <daniel@...earbox.net>, David Drysdale <drysdale@...gle.com>, Eric Paris <eparis@...hat.com>, James Morris <james.l.morris@...cle.com>, Jeff Dike <jdike@...toit.com>, Julien Tinnes <jln@...gle.com>, Kees Cook <keescook@...omium.org>, Michael Kerrisk <mtk@...7.org>, Paul Moore <pmoore@...hat.com>, Richard Weinberger <richard@....at>, "Serge E . Hallyn" <serge@...lyn.com>, Stephen Smalley <sds@...ho.nsa.gov>, Tetsuo Handa <penguin-kernel@...ove.SAKURA.ne.jp>, Will Drewry <wad@...omium.org>, linux-api@...r.kernel.org, kernel-hardening@...ts.openwall.com Subject: [RFC v1 13/17] selftest/seccomp: Rename TRACE_poke to TRACE_poke_sys_read Cosmetic rename for future name derivatives. Signed-off-by: Mickaël Salaün <mic@...ikod.net> Cc: Andy Lutomirski <luto@...nel.org> Cc: Kees Cook <keescook@...omium.org> Cc: Paul Moore <pmoore@...hat.com> Cc: Will Drewry <wad@...omium.org> --- tools/testing/selftests/seccomp/seccomp_bpf.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/testing/selftests/seccomp/seccomp_bpf.c b/tools/testing/selftests/seccomp/seccomp_bpf.c index 49c5d39c30a4..7c48d4cf476a 100644 --- a/tools/testing/selftests/seccomp/seccomp_bpf.c +++ b/tools/testing/selftests/seccomp/seccomp_bpf.c @@ -1138,14 +1138,14 @@ void tracer_poke(struct __test_metadata *_metadata, pid_t tracee, int status, EXPECT_EQ(0, ret); } -FIXTURE_DATA(TRACE_poke) { +FIXTURE_DATA(TRACE_poke_sys_read) { struct sock_fprog prog; pid_t tracer; long poked; struct tracer_args_poke_t tracer_args; }; -FIXTURE_SETUP(TRACE_poke) +FIXTURE_SETUP(TRACE_poke_sys_read) { struct sock_filter filter[] = { BPF_STMT(BPF_LD|BPF_W|BPF_ABS, @@ -1170,14 +1170,14 @@ FIXTURE_SETUP(TRACE_poke) &self->tracer_args); } -FIXTURE_TEARDOWN(TRACE_poke) +FIXTURE_TEARDOWN(TRACE_poke_sys_read) { teardown_trace_fixture(_metadata, self->tracer); if (self->prog.filter) free(self->prog.filter); } -TEST_F(TRACE_poke, read_has_side_effects) +TEST_F(TRACE_poke_sys_read, read_has_side_effects) { ssize_t ret; @@ -1193,7 +1193,7 @@ TEST_F(TRACE_poke, read_has_side_effects) EXPECT_EQ(0x1001, self->poked); } -TEST_F(TRACE_poke, getpid_runs_normally) +TEST_F(TRACE_poke_sys_read, getpid_runs_normally) { long ret; -- 2.8.0.rc3
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.