Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: David Gow <davidgow@google.com>
Reviewed-by: SeongJae Park <sj@kernel.org>
Acked-by: Christian Brauner <brauner@kernel.org>
Link: https://lore.kernel.org/r/20240720170310.it.942-kees@kernel.org
Signed-off-by: Kees Cook <kees@kernel.org>

+4 -3
+2 -1
MAINTAINERS
··· 8220 8220 F: fs/*binfmt_*.c 8221 8221 F: fs/Kconfig.binfmt 8222 8222 F: fs/exec.c 8223 - F: fs/exec_test.c 8223 + F: fs/tests/binfmt_*_kunit.c 8224 + F: fs/tests/exec_kunit.c 8224 8225 F: include/linux/binfmts.h 8225 8226 F: include/linux/elf.h 8226 8227 F: include/uapi/linux/binfmts.h
+1 -1
fs/binfmt_elf.c
··· 2152 2152 module_exit(exit_elf_binfmt); 2153 2153 2154 2154 #ifdef CONFIG_BINFMT_ELF_KUNIT_TEST 2155 - #include "binfmt_elf_test.c" 2155 + #include "tests/binfmt_elf_kunit.c" 2156 2156 #endif
fs/binfmt_elf_test.c fs/tests/binfmt_elf_kunit.c
+1 -1
fs/exec.c
··· 2244 2244 #endif /* CONFIG_SYSCTL */ 2245 2245 2246 2246 #ifdef CONFIG_EXEC_KUNIT_TEST 2247 - #include "exec_test.c" 2247 + #include "tests/exec_kunit.c" 2248 2248 #endif
fs/exec_test.c fs/tests/exec_kunit.c