[LTP] syscalls/cma: Handle Yama ptrace_scope in tests
linuxtestproject.agent@gmail.com
linuxtestproject.agent@gmail.com
Wed Oct 14 18:40:36 CEST 2026
Hi Andrea,
On Wed, 14 Oct 2026, Andrea Cervesato wrote:
> syscalls/cma: Handle Yama ptrace_scope in tests
> diff --git a/testcases/kernel/syscalls/cma/cma.h b/testcases/kernel/syscalls/cma/cma.h
> + struct tst_cap cap = TST_CAP(TST_CAP_REQ, CAP_SYS_PTRACE);
[High] All three changed tests fail to compile without libcap development
headers: CAP_SYS_PTRACE is undeclared at cma.h:17.
tst_capability.h gets this constant only through the optional
sys/capability.h, and lapi/capability.h has no fallback for it.
Include <linux/capability.h> in cma.h so the tests build without libcap.
Verdict - Needs revision
---
Note:
The agent can sometimes produce false positives although often its
findings are genuine. If you find issues with the review, please
comment this email or ignore the suggestions.
Regards,
LTP AI Reviewer
More information about the ltp
mailing list