Move prctl04 in seccomp testing suite
PATCH v2 1/1 Move prctl04 in seccomp testing suite
From: Andrea Cervesato <[email protected]>
prictl04 has been renamed as seccomp01 and a test variant has been added in order to support the seccomp() syscall, that is currently equivalent to prctl(PR_SET_SECCOMP).
---
This testing suite is aiming to test seccomp() syscall which is supposed to wrap prctl(PR_SET_SECCOMP). Some parts have been moved from prctl tesitng suite to a new seccomp testing suite and added a test variant.
---
Changes in v2:
- more information about the current running variant
- Link to v1: https://lore.kernel.org/r/[email protected]
---
runtest/syscalls | 3 +-
testcases/kernel/syscalls/prctl/.gitignore | 1 -
testcases/kernel/syscalls/seccomp/.gitignore | 1 +
testcases/kernel/syscalls/seccomp/Makefile | 7 ++
.../{prctl/prctl04.c => seccomp/seccomp01.c} | 85 +++++++++++++---------
5 files changed, 61 insertions(+), 36 deletions(-)runtest/syscalls +2 -1
@@ -1021,7 +1021,6 @@ ppoll01 ppoll01 prctl01 prctl01 prctl02 prctl02 prctl03 prctl03 -prctl04 prctl04 prctl05 prctl05 prctl06 prctl06 prctl07 prctl07
@@ -1239,6 +1238,8 @@ sched_setattr01 sched_setattr01 sched_getattr01 sched_getattr01 sched_getattr02 sched_getattr02 +seccomp01 seccomp01 + select01 select01 select02 select02 select03 select03
testcases/kernel/syscalls/prctl/.gitignore +0 -1
@@ -1,7 +1,6 @@ /prctl01 /prctl02 /prctl03 -/prctl04 /prctl05 /prctl06 /prctl06_execve
testcases/kernel/syscalls/seccomp/.gitignore new file +1 -0
@@ -0,0 +1 @@ +seccomp01
testcases/kernel/syscalls/seccomp/Makefile new file +7 -0
@@ -0,0 +1,7 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +# Copyright (C) 2024 SUSE LLC Andrea Cervesato <[email protected]> + +top_srcdir ?= ../../../.. + +include $(top_srcdir)/include/mk/testcases.mk +include $(top_srcdir)/include/mk/generic_leaf_target.mk
testcases/kernel/syscalls/seccomp/seccomp01.c renamed from testcases/kernel/syscalls/prctl/prctl04.c +51 -34
157 lines not on this page · raw message
---
base-commit: 66517b89141fc455ed807f3b95e5260dcf9fb90f
change-id: 20240603-seccomp-06f18e9551df
Best regards,
Signature · 5 lines
Andrea Cervesato <[email protected]> -- Mailing list info: https://lists.linux.it/listinfo/ltp
Hi Andrea,
thanks, merged!
Kind regards,
Petr
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp