diff options
author | Jann Horn <jannh@google.com> | 2022-03-19 02:00:11 +0100 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2022-04-29 11:28:41 -0700 |
commit | 2bfed7d2ffa5d86c462d3e2067f2832eaf8c04c7 (patch) | |
tree | 942646132ec42def86ffcd74304105cc7ece7bcd /certs/blacklist.c | |
parent | ce522ba9ef7e2d9fb22a39eb3371c0c64e2a433e (diff) | |
download | linux-2bfed7d2ffa5d86c462d3e2067f2832eaf8c04c7.tar.bz2 |
selftests/seccomp: Don't call read() on TTY from background pgrp
Since commit 92d25637a3a4 ("kselftest: signal all child processes"), tests
are executed in background process groups. This means that trying to read
from stdin now throws SIGTTIN when stdin is a TTY, which breaks some
seccomp selftests that try to use read(0, NULL, 0) as a dummy syscall.
The simplest way to fix that is probably to just use -1 instead of 0 as
the dummy read()'s FD.
Fixes: 92d25637a3a4 ("kselftest: signal all child processes")
Signed-off-by: Jann Horn <jannh@google.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20220319010011.1374622-1-jannh@google.com
Diffstat (limited to 'certs/blacklist.c')
0 files changed, 0 insertions, 0 deletions