Kees Cook
0f71241a8e
selftests/exec: add file type errno tests
...
Make sure execve() returns the expected errno values for non-regular
files.
Signed-off-by: Kees Cook <[email protected] >
Signed-off-by: Andrew Morton <[email protected] >
Cc: Marc Zyngier <[email protected] >
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Linus Torvalds <[email protected] >
2020-08-14 19:56:56 -07:00
Kees Cook
61016db15b
selftests/exec: Verify execve of non-regular files fail
...
Add a named pipe as an exec target to make sure that non-regular
files are rejected by execve() with EACCES. This can help verify
commit 73601ea5b7 ("fs/open.c: allow opening only regular files
during execve()").
Signed-off-by: Kees Cook <[email protected] >
Signed-off-by: Shuah Khan <[email protected] >
2020-05-22 09:29:00 -06:00
Masahiro Yamada
d198b34f38
.gitignore: add SPDX License Identifier
...
Add SPDX License Identifier to all .gitignore files.
Signed-off-by: Masahiro Yamada <[email protected] >
Signed-off-by: Greg Kroah-Hartman <[email protected] >
2020-03-25 11:50:48 +01:00
Alexey Dobriyan
4e7301e6df
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 <[email protected] >
Cc: Shuah Khan <[email protected] >
Signed-off-by: Andrew Morton <[email protected] >
Signed-off-by: Linus Torvalds <[email protected] >
2019-05-14 19:52:50 -07:00
David Drysdale
c9b26b81af
syscalls: add selftest for execveat(2)
...
Signed-off-by: David Drysdale <[email protected] >
Cc: Meredydd Luff <[email protected] >
Cc: Shuah Khan <[email protected] >
Cc: "Eric W. Biederman" <[email protected] >
Cc: Andy Lutomirski <[email protected] >
Cc: Alexander Viro <[email protected] >
Cc: Thomas Gleixner <[email protected] >
Cc: Ingo Molnar <[email protected] >
Cc: "H. Peter Anvin" <[email protected] >
Cc: Kees Cook <[email protected] >
Cc: Arnd Bergmann <[email protected] >
Cc: Rich Felker <[email protected] >
Cc: Christoph Hellwig <[email protected] >
Cc: Michael Kerrisk <[email protected] >
Signed-off-by: Andrew Morton <[email protected] >
Signed-off-by: Linus Torvalds <[email protected] >
2014-12-13 12:42:51 -08:00