exec selftests: test ->recursion_depth
Test that trivially recursing script onto itself doesn't work. Note: this is different test from ELOOP tests in execveat.c Those test that execveat(2) doesn't follow symlinks when told to do so. Link: http://lkml.kernel.org/r/20190423192720.GA21433@avx2 Signed-off-by:Alexey Dobriyan <adobriyan@gmail.com> Cc: Shuah Khan <shuah@kernel.org> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
Showing
- tools/testing/selftests/exec/.gitignore 2 additions, 1 deletiontools/testing/selftests/exec/.gitignore
- tools/testing/selftests/exec/Makefile 4 additions, 0 deletionstools/testing/selftests/exec/Makefile
- tools/testing/selftests/exec/recursion-depth.c 67 additions, 0 deletionstools/testing/selftests/exec/recursion-depth.c
Loading
Please register or sign in to comment