Skip to content
Commit b4426da8 authored by Itaru Kitayama's avatar Itaru Kitayama Committed by Greg Kroah-Hartman
Browse files

tools/testing/selftests/mm/run_vmtests.sh: lower the ptrace permissions

[ Upstream commit 2ffc27b1

 ]

On Ubuntu and probably other distros, ptrace permissions are tightend a
bit by default; i.e., /proc/sys/kernel/yama/ptrace_score is set to 1.
This cases memfd_secret's ptrace attach test fails with a permission
error.  Set it to 0 piror to running the program.

Link: https://lkml.kernel.org/r/20231030-selftest-v1-1-743df68bb996@linux.dev
Signed-off-by: default avatarItaru Kitayama <itaru.kitayama@linux.dev>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Stable-dep-of: 7c5e8d212d7d ("selftests: memfd_secret: don't build memfd_secret test on unsupported arches")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent b77471c6
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment