Skip to content

RFC Convert shell-based ACL test (tacl_xattr.sh) to C

Sachin Sant ltp 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest8 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8fs/acl: Add ACL_USER_OBJ permissions testruntest/fs testcases/kernel/fs/acl/.gitignore testcases/kernel/fs/acl/Makefile +2 more+464 -01 reply
2/8fs/acl: Add ACL mask interaction testsruntest/fs testcases/kernel/fs/acl/.gitignore testcases/kernel/fs/acl/acl_mask01.c+279 -00 replies
3/8fs/acl: Add ACL_OTHER permissions testruntest/fs testcases/kernel/fs/acl/.gitignore testcases/kernel/fs/acl/acl_other01.c+103 -00 replies
4/8fs/acl: Add default ACL inheritance testruntest/fs testcases/kernel/fs/acl/.gitignore testcases/kernel/fs/acl/acl_inherit01.c+114 -00 replies
5/8fs/acl: Add chmod/chown ACL interaction testsruntest/fs testcases/kernel/fs/acl/.gitignore testcases/kernel/fs/acl/acl_file_ops01.c+298 -00 replies
6/8fs/acl: Add symlink ACL operations testruntest/fs testcases/kernel/fs/acl/.gitignore testcases/kernel/fs/acl/acl_link01.c+126 -00 replies
7/8fs/acl: Add extended attributes testruntest/fs testcases/kernel/fs/acl/.gitignore testcases/kernel/fs/acl/xattr_test01.c+351 -00 replies
8/8fs/acl: Remove old shell-based ACL testtestcases/kernel/fs/acl/tacl_xattr.sh+0 -8070 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [LTP] [RFC][PATCH 0/8] Convert shell-based ACL test (tacl_xattr.sh) to C

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.

Partially closes(convert tacl_xattr.sh to C)
https://github.com/linux-test-project/ltp/issues/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.

Sachin Sant (8):
fs/acl: Add ACL_USER_OBJ permissions test
fs/acl: Add ACL mask interaction tests
fs/acl: Add ACL_OTHER permissions test
fs/acl: Add default ACL inheritance test
fs/acl: Add chmod/chown ACL interaction tests
fs/acl: Add symlink ACL operations test
fs/acl: Add extended attributes test
fs/acl: Remove old shell-based ACL test

 runtest/fs                               |   8 +
 testcases/kernel/fs/acl/.gitignore       |   7 +
 testcases/kernel/fs/acl/Makefile         |  10 +
 testcases/kernel/fs/acl/acl_file_ops01.c | 296 +++++++++
 testcases/kernel/fs/acl/acl_inherit01.c  | 112 ++++
 testcases/kernel/fs/acl/acl_lib.h        | 342 ++++++++++
 testcases/kernel/fs/acl/acl_link01.c     | 124 ++++
 testcases/kernel/fs/acl/acl_mask01.c     | 277 ++++++++
 testcases/kernel/fs/acl/acl_other01.c    | 101 +++
 testcases/kernel/fs/acl/acl_user_obj01.c | 109 +++
 testcases/kernel/fs/acl/tacl_xattr.sh    | 807 -----------------------
 testcases/kernel/fs/acl/xattr_test01.c   | 349 ++++++++++
 12 files changed, 1735 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
Signature · 5 lines
2.39.1


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