mirror of
https://github.com/torvalds/linux.git
synced 2026-11-26 16:33:17 +00:00
This adds testing for the new pidfd_open() syscalls. Specifically, we test: - that no invalid flags can be passed to pidfd_open() - that no invalid pid can be passed to pidfd_open() - that a pidfd can be retrieved with pidfd_open() - that the retrieved pidfd references the correct pid Signed-off-by: Christian Brauner <[email protected]> Cc: Arnd Bergmann <[email protected]> Cc: "Eric W. Biederman" <[email protected]> Cc: Kees Cook <[email protected]> Cc: Joel Fernandes (Google) <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Jann Horn <[email protected]> Cc: David Howells <[email protected]> Cc: "Michael Kerrisk (man-pages)" <[email protected]> Cc: Andy Lutomirsky <[email protected]> Cc: Andrew Morton <[email protected]> Cc: Oleg Nesterov <[email protected]> Cc: Aleksa Sarai <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Al Viro <[email protected]> Cc: [email protected]
8 lines
156 B
Makefile
8 lines
156 B
Makefile
# SPDX-License-Identifier: GPL-2.0-only
|
|
CFLAGS += -g -I../../../../usr/include/ -lpthread
|
|
|
|
TEST_GEN_PROGS := pidfd_test pidfd_open_test
|
|
|
|
include ../lib.mk
|
|
|