[LTP] [PATCH v2 0/4] syscalls: lchown: Convert to new API

Ricardo B. Marlière rbm@suse.com
Wed Aug 6 23:07:45 CEST 2025


Signed-off-by: Ricardo B. Marlière <rbm@suse.com>
---
Changes in v2:
- Join test_case_t structs and arrays definitions
- Simplify overall by removing unneeded comments
- Use octal permission modes
- Use SAFE_TOUCH when possible
- lchown01: Removed unneeded use of geteuid() and getegid()
- lchown02: Merged all setup into a single function
- lchown03: Added test descriptions and used snprintf() instead of strcpy()
- Link to v1: https://lore.kernel.org/r/20250702-conversions-lchown-v1-0-ac7adb3af51d@suse.com

---
Ricardo B. Marlière (4):
      lib: Add SAFE_LCHOWN
      syscalls: lchown01: Convert to new API
      syscalls: lchown02: Convert to new API
      syscalls: lchown03: Convert to new API

 include/safe_macros_fn.h                    |   3 +
 include/tst_safe_macros.h                   |   3 +
 lib/safe_macros.c                           |  19 ++
 testcases/kernel/syscalls/lchown/Makefile   |   5 -
 testcases/kernel/syscalls/lchown/lchown01.c | 191 ++++------------
 testcases/kernel/syscalls/lchown/lchown02.c | 328 ++++++----------------------
 testcases/kernel/syscalls/lchown/lchown03.c | 170 ++++----------
 7 files changed, 170 insertions(+), 549 deletions(-)
---
base-commit: e59c60ff44bfc50a360838cc2819e693f3741d75
change-id: 20250702-conversions-lchown-8dbc583f10b8

Best regards,
-- 
Ricardo B. Marlière <rbm@suse.com>



More information about the ltp mailing list