From: Sachin Sant <sachinp@linux.ibm.com>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH v8 0/8] Convert shell-based ACL test (tacl_xattr.sh) to C
Date: Sat, 13 Jun 2026 14:35:35 +0530 [thread overview]
Message-ID: <20260613090543.78643-1-sachinp@linux.ibm.com> (raw)
This patch series converts the existing shell-based ACL
test (tacl_xattr.sh) to C implementation, providing better
integration with the LTP test framework and more precise
control over test execution.
v7 -> v8
Updated patches 1, 5, 6 and 7 to incorporate review comments.
v6 -> v7
Updated 1/8 to address review comments. Rest of the patches
in the series remain unchanged.
v5 -> v6
Updated patches 1 to 7 to address review comments. Added
HAVE_SYS_XATTR_H guards for systems without xattr support
v4 -> v5
Updated patches 1 to 7 to address review comments. Tests rely on
kernel only implementation and removes dependeny on acl library
and useradd/del commands
v3 -> v4
Updated patches 1/8, 4/8 & 6/8 to address review comments.
No changes to other patches in the series.
v2 -> v3
Updated patches 1 through 7 to address review comments.
v1 -> v2
Updated patches 1/8, 6/8 and 7/8 to address review comments.
Remaining patches remain unchanged
Addresses part of issue #1265
The conversion splits functionality into seven focused test files.
Patch 1/8 adds acl_user_obj01.c
Patch 2/8 adds acl_mask01.c
Patch 3/8 adds acl_other01.c
Patch 4/8 adds acl_inherit01.c
Patch 5/8 adds acl_file_ops01.c
Patch 6/8 adds acl_link01.c
Patch 7/8 adds xattr_test01.c
The code has been successfully tested on SLES (kernel 6.12)
and fedora (kernel 7.0) releases on ppc64le arch.
Test build is clean in various distros. CI build report at
https://github.com/sacsant/ltp/actions/runs/27462066285
Sachin Sant (8):
fs/acl: Add ACL_USER_OBJ permission test
fs/acl: Add ACL mask interaction tests
fs/acl: Add ACL_OTHER permission test
fs/acl: Add default ACL inheritance test
fs/acl: Add chmod/chown ACL interaction tests
fs/acl: Add ACL symlink operations test
fs/acl: Add extended attributes test
fs/acl: Remove old shell-based ACL test
runtest/fs | 9 +
testcases/kernel/fs/acl/.gitignore | 7 +
testcases/kernel/fs/acl/Makefile | 8 +
testcases/kernel/fs/acl/acl_file_ops01.c | 256 +++++++
testcases/kernel/fs/acl/acl_inherit01.c | 113 ++++
testcases/kernel/fs/acl/acl_lib.h | 507 ++++++++++++++
testcases/kernel/fs/acl/acl_link01.c | 215 ++++++
testcases/kernel/fs/acl/acl_mask01.c | 273 ++++++++
testcases/kernel/fs/acl/acl_other01.c | 104 +++
testcases/kernel/fs/acl/acl_user_obj01.c | 126 ++++
testcases/kernel/fs/acl/tacl_xattr.sh | 807 -----------------------
testcases/kernel/fs/acl/xattr_test01.c | 383 +++++++++++
12 files changed, 2001 insertions(+), 807 deletions(-)
create mode 100644 testcases/kernel/fs/acl/.gitignore
create mode 100644 testcases/kernel/fs/acl/Makefile
create mode 100644 testcases/kernel/fs/acl/acl_file_ops01.c
create mode 100644 testcases/kernel/fs/acl/acl_inherit01.c
create mode 100644 testcases/kernel/fs/acl/acl_lib.h
create mode 100644 testcases/kernel/fs/acl/acl_link01.c
create mode 100644 testcases/kernel/fs/acl/acl_mask01.c
create mode 100644 testcases/kernel/fs/acl/acl_other01.c
create mode 100644 testcases/kernel/fs/acl/acl_user_obj01.c
delete mode 100755 testcases/kernel/fs/acl/tacl_xattr.sh
create mode 100644 testcases/kernel/fs/acl/xattr_test01.c
--
2.39.1
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next reply other threads:[~2026-06-13 9:06 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-13 9:05 Sachin Sant [this message]
2026-06-13 9:05 ` [LTP] [PATCH v8 1/8] fs/acl: Add ACL_USER_OBJ permission test Sachin Sant
2026-06-13 10:36 ` [LTP] " linuxtestproject.agent
2026-06-13 9:05 ` [LTP] [PATCH v8 2/8] fs/acl: Add ACL mask interaction tests Sachin Sant
2026-06-13 9:05 ` [LTP] [PATCH v8 3/8] fs/acl: Add ACL_OTHER permission test Sachin Sant
2026-06-13 9:05 ` [LTP] [PATCH v8 4/8] fs/acl: Add default ACL inheritance test Sachin Sant
2026-06-13 9:05 ` [LTP] [PATCH v8 5/8] fs/acl: Add chmod/chown ACL interaction tests Sachin Sant
2026-06-13 9:05 ` [LTP] [PATCH v8 6/8] fs/acl: Add ACL symlink operations test Sachin Sant
2026-06-13 9:05 ` [LTP] [PATCH v8 7/8] fs/acl: Add extended attributes test Sachin Sant
2026-06-13 9:05 ` [LTP] [PATCH v8 8/8] fs/acl: Remove old shell-based ACL test Sachin Sant
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260613090543.78643-1-sachinp@linux.ibm.com \
--to=sachinp@linux.ibm.com \
--cc=ltp@lists.linux.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox