syscalls/openat2: New tests
PATCH v3 1/1 syscalls/openat2: New tests
Add tests to check working of openat2() syscall.
Signed-off-by Viresh Kumar <[email protected]>
---V2->V3:
- Fix kernel version information.
- Change size to 8 for padding related structure.
- Add new RESOLVE flag related test.
V1->V2:
- Separate file for testing success/failure of different resolve flags
- Better testing for checking out of bound usage of the buffer by the kernel with the help of tst_buffers.
- s/__u64/uint64_t/
- Drop stale AIO_LIBS reference
- Other minor modifications
configure.ac | 1 + include/lapi/openat2.h | 72 ++++++++++++++ runtest/syscalls | 4 + testcases/kernel/syscalls/openat2/.gitignore | 3 + testcases/kernel/syscalls/openat2/Makefile | 7 ++ testcases/kernel/syscalls/openat2/openat201.c | 98 +++++++++++++++++++ testcases/kernel/syscalls/openat2/openat202.c | 87 ++++++++++++++++ testcases/kernel/syscalls/openat2/openat203.c | 80 +++++++++++++++ 8 files changed, 352 insertions(+) create mode 100644 include/lapi/openat2.h create mode 100644 testcases/kernel/syscalls/openat2/.gitignore create mode 100644 testcases/kernel/syscalls/openat2/Makefile create mode 100644 testcases/kernel/syscalls/openat2/openat201.c create mode 100644 testcases/kernel/syscalls/openat2/openat202.c create mode 100644 testcases/kernel/syscalls/openat2/openat203.c
configure.ac +1 -0
@@ -96,6 +96,7 @@ AC_CHECK_FUNCS([ \ name_to_handle_at \ open_tree \ openat \ + openat2 \ pidfd_open \ pidfd_send_signal \ pkey_mprotect \
include/lapi/openat2.h new file +72 -0
72 lines not on this page · raw message
runtest/syscalls +4 -0
@@ -847,6 +847,10 @@ openat01 openat01 openat02 openat02 openat03 openat03 +openat201 openat201 +openat202 openat202 +openat203 openat203 + open_tree01 open_tree01 open_tree02 open_tree02
testcases/kernel/syscalls/openat2/.gitignore new file +3 -0
@@ -0,0 +1,3 @@ +openat201 +openat202 +openat203
testcases/kernel/syscalls/openat2/Makefile new file +7 -0
@@ -0,0 +1,7 @@ +# SPDX-License-Identifier: GPL-2.0-or-later + +top_srcdir ?= ../../../.. + +include $(top_srcdir)/include/mk/testcases.mk + +include $(top_srcdir)/include/mk/generic_leaf_target.mk
testcases/kernel/syscalls/openat2/openat201.c new file +98 -0
98 lines not on this page · raw message
testcases/kernel/syscalls/openat2/openat202.c new file +87 -0
87 lines not on this page · raw message
testcases/kernel/syscalls/openat2/openat203.c new file +80 -0
80 lines not on this page · raw message
Signature · 1 line
2.21.0.rc0.269.g1a574e7a288b
PATCH v3 1/1 syscalls/openat2: New tests
Hi!
Applied, thanks.
Signature · 2 lines
Cyril Hrubis [email protected]