Commit a84e3bf5 authored by Terry Tritton's avatar Terry Tritton Committed by Treehugger Robot
Browse files

UPSTREAM: selftests/seccomp: Change the syscall used in KILL_THREAD test



The Bionic version of pthread_create used on Android calls the prctl
function to give the stack and thread local storage a useful name. This
will cause the KILL_THREAD test to fail as it will kill the thread as
soon as it is created.

change the test to use getpid instead of prctl.

Change-Id: I0f7663091be7589c3a94be45621bdd35ae02e8e5
Signed-off-by: default avatarTerry Tritton <terry.tritton@linaro.org>
Link: https://lore.kernel.org/r/20240124141357.1243457-3-terry.tritton@linaro.org


Signed-off-by: default avatarKees Cook <keescook@chromium.org>
(cherry picked from commit 471dbc54)
Signed-off-by: default avatarEdward Liaw <edliaw@google.com>
parent 90128efd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment