Skip to content

Fix cma testing suite permissions

Andrea Cervesato linux-security-module ltp 3 versions – In review

Get series with b4
b4 am 20261020-fix_process_vm_writev_permissions-v3-0-1e92d7a29aef@suse.com change-id 20261014-fix_process_vm_writev_permissions-6fca6598d9fb

Versions newest first

  1. v3 Latest2 patches 2 repliesIn review
  2. v21 patch 1 replySuperseded
  3. v11 patch 1 replySuperseded

Changes in v3 from the cover letter

- add CAP_SYS_PTRACE fallback in lapi/capability.h
- Link to v2: https://lore.kernel.org/20261014-fix_process_vm_writev_permissions-v2-1-17710f74606c@suse.com

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2lapi/capability.h: Add CAP_SYS_PTRACE fallbackinclude/lapi/capability.h+4 -01 reply
2/2syscalls/cma: Handle Yama ptrace_scope in teststestcases/kernel/syscalls/cma/cma.h testcases/kernel/syscalls/cma/process_vm_readv02.c testcases/kernel/syscalls/cma/process_vm_readv03.c +1 more+53 -01 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [LTP] [PATCH v3 0/2] Fix cma testing suite permissions

The cma testing suite started to fail on modern systems enabling YAMA. Unfortunately, using CAP_PTRACE capability for users is not enough to avoid an EPERM. For this reason, it's better to require root and fix the whole suite in one shot.

---
Changes in v3:
- add CAP_SYS_PTRACE fallback in lapi/capability.h
- Link to v2: https://lore.kernel.org/20261014-fix_process_vm_writev_permissions-v2-1-17710f74606c@suse.com

Changes in v2:
- consider mode 1, 2, 3 and user
- Link to v1: https://lore.kernel.org/20261014-fix_process_vm_writev_permissions-v1-1-6affee2da859@suse.com

---
Andrea Cervesato (2):
lapi/capability.h: Add CAP_SYS_PTRACE fallback syscalls/cma: Handle Yama ptrace_scope in tests

 include/lapi/capability.h                          |  4 +++
 testcases/kernel/syscalls/cma/cma.h                | 38 ++++++++++++++++++++++
 testcases/kernel/syscalls/cma/process_vm_readv02.c |  5 +++
 testcases/kernel/syscalls/cma/process_vm_readv03.c |  5 +++
 .../kernel/syscalls/cma/process_vm_writev02.c      |  5 +++
 5 files changed, 57 insertions(+)

---
base-commit: 1aae0e4d9d1e2e7818fda773b372cee8fb856de7
change-id: 20261014-fix_process_vm_writev_permissions-6fca6598d9fb

Best regards,

Signature · 5 lines
Andrea Cervesato <[email protected]>


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp