Commit b6f5ee4d authored by Kees Cook's avatar Kees Cook
Browse files

execve: Move KUnit tests to tests/ subdirectory



Move the exec KUnit tests into a separate directory to avoid polluting
the local directory namespace. Additionally update MAINTAINERS for the
new files.

Reviewed-by: default avatarDavid Gow <davidgow@google.com>
Reviewed-by: default avatarSeongJae Park <sj@kernel.org>
Acked-by: default avatarChristian Brauner <brauner@kernel.org>
Link: https://lore.kernel.org/r/20240720170310.it.942-kees@kernel.org


Signed-off-by: default avatarKees Cook <kees@kernel.org>
parent 21f93108
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -8220,7 +8220,8 @@ F: Documentation/userspace-api/ELF.rst
F:	fs/*binfmt_*.c
F:	fs/Kconfig.binfmt
F:	fs/exec.c
F:	fs/exec_test.c
F:	fs/tests/binfmt_*_kunit.c
F:	fs/tests/exec_kunit.c
F:	include/linux/binfmts.h
F:	include/linux/elf.h
F:	include/uapi/linux/binfmts.h
+1 −1
Original line number Diff line number Diff line
@@ -2152,5 +2152,5 @@ core_initcall(init_elf_binfmt);
module_exit(exit_elf_binfmt);

#ifdef CONFIG_BINFMT_ELF_KUNIT_TEST
#include "binfmt_elf_test.c"
#include "tests/binfmt_elf_kunit.c"
#endif
+1 −1
Original line number Diff line number Diff line
@@ -2244,5 +2244,5 @@ fs_initcall(init_fs_exec_sysctls);
#endif /* CONFIG_SYSCTL */

#ifdef CONFIG_EXEC_KUNIT_TEST
#include "exec_test.c"
#include "tests/exec_kunit.c"
#endif
+0 −0

File moved.

+0 −0

File moved.