From: linuxtestproject.agent@gmail.com
To: Sachin Sant <sachinp@linux.ibm.com>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] fs/acl: Add ACL_USER_OBJ permissions test
Date: Mon, 1 Jun 2026 06:48:24 +0000 [thread overview]
Message-ID: <20260601064824.4235-1-linuxtestproject.agent@gmail.com> (raw)
In-Reply-To: <20260531124540.70788-2-sachinp@linux.ibm.com>
Hi Sachin,
Thank you for this series. Converting the old monolithic tacl_xattr.sh to
modular C tests using the new LTP API is a clear improvement. The code
structure, helper library design, ACL logic, and test coverage are all solid.
I found two commit-message accuracy issues that need to be fixed before the
series can be applied.
---
[PATCH 7/8] fs/acl: Add extended attributes test
The commit subject and body both describe 6 test cases:
Add xattr_test01 test with 6 test cases to validate extended
attribute operations:
1. Set/get xattr on directory
2. Set/get xattr on regular file
3. List xattrs on directory
4. Remove xattr from file
5. Backup and restore xattrs
6. Verify xattr operations follow symlinks to target
But the actual implementation has only 2 sub-tests (.tcnt = 2):
case 0: test_xattr() — covers items 1, 2, 4
case 1: test_xattr_backup_restore() — covers item 5
Items 3 ("List xattrs on directory") and 6 ("Verify xattr operations
follow symlinks to target") are described in the commit message but are
not implemented anywhere in xattr_test01.c. There is no listxattr(2) call
and no symlink creation or xattr-through-symlink test in the file.
The test's own description block is accurate:
* This test validates:
* - Extended attributes set/get/remove operations
* - Extended attributes backup and restore operations
Please update the commit message to match the actual implementation.
Either drop the unimplemented items from the list (and say "2 test cases"),
or implement the missing cases.
---
[PATCH 8/8] fs/acl: Remove old shell-based ACL test
The replacement test summary in this commit is copied from (or refers to)
the inaccurate count above:
- xattr_test01: Extended attributes (6 tests)
xattr_test01 has .tcnt = 2, not 6. Update this line to:
- xattr_test01: Extended attributes (2 tests)
---
Verdict: Needs revision
---
Code review notes (no action required):
- acl_lib.h is clean: the static-inline helper design, SAFE_FORK/
SAFE_WAITPID usage, setgroups(0,NULL)+setgid+setuid ordering, and
_exit(errno) through WEXITSTATUS are all correct.
- All tst_test structs correctly set needs_root=1, mount_device=1,
forks_child=1, and list appropriate ACL-capable filesystems. The
needs_cmds guard for useradd/userdel is a nice touch.
- ACL semantics in every sub-test are correct: ACL_USER_OBJ is unaffected
by ACL_MASK; ACL_OTHER is likewise mask-exempt; ACL_USER/ACL_GROUP/
ACL_GROUP_OBJ are correctly restricted by the mask. The acl_inherit01
umask=0 + mode=0666 → 0444 path matches POSIX ACL inheritance rules.
- The Makefile wildcard build and runtest/fs entries are all consistent.
The old tacl_xattr.sh had no runtest entry, so no runtest removal is
needed.
Thanks,
LTP AI Reviewer
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2026-06-01 6:48 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-31 12:45 [LTP] [RFC][PATCH 0/8] Convert shell-based ACL test (tacl_xattr.sh) to C Sachin Sant
2026-05-31 12:45 ` [LTP] [RFC][PATCH 1/8] fs/acl: Add ACL_USER_OBJ permissions test Sachin Sant
2026-06-01 6:48 ` linuxtestproject.agent [this message]
2026-05-31 12:45 ` [LTP] [RFC][PATCH 2/8] fs/acl: Add ACL mask interaction tests Sachin Sant
2026-05-31 12:45 ` [LTP] [RFC][PATCH 3/8] fs/acl: Add ACL_OTHER permissions test Sachin Sant
2026-05-31 12:45 ` [LTP] [RFC][PATCH 4/8] fs/acl: Add default ACL inheritance test Sachin Sant
2026-05-31 12:45 ` [LTP] [RFC][PATCH 5/8] fs/acl: Add chmod/chown ACL interaction tests Sachin Sant
2026-05-31 12:45 ` [LTP] [RFC][PATCH 6/8] fs/acl: Add symlink ACL operations test Sachin Sant
2026-05-31 12:45 ` [LTP] [RFC][PATCH 7/8] fs/acl: Add extended attributes test Sachin Sant
2026-05-31 12:45 ` [LTP] [RFC][PATCH 8/8] fs/acl: Remove old shell-based ACL test Sachin Sant
2026-06-01 6:50 ` [LTP] [RFC][PATCH 0/8] Convert shell-based ACL test (tacl_xattr.sh) to C Andrea Cervesato via ltp
2026-06-02 6:23 ` Sachin Sant
-- strict thread matches above, loose matches on Subject: below --
2026-06-02 12:19 [LTP] [PATCH v1 1/8] fs/acl: Add ACL_USER_OBJ permissions test Sachin Sant
2026-06-02 12:52 ` [LTP] " linuxtestproject.agent
2026-06-05 9:20 ` Andrea Cervesato via ltp
2026-06-03 6:57 [LTP] [PATCH v2 1/8] " Sachin Sant
2026-06-03 9:43 ` [LTP] " linuxtestproject.agent
2026-06-03 12:49 ` Sachin Sant
2026-06-03 14:01 [LTP] [PATCH 1/8] " Sachin Sant
2026-06-03 14:52 ` [LTP] " linuxtestproject.agent
2026-06-04 6:54 [LTP] [PATCH v4 1/8] " Sachin Sant
2026-06-04 7:20 ` [LTP] " linuxtestproject.agent
2026-06-05 9:31 ` linuxtestproject.agent
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=20260601064824.4235-1-linuxtestproject.agent@gmail.com \
--to=linuxtestproject.agent@gmail.com \
--cc=ltp@lists.linux.it \
--cc=sachinp@linux.ibm.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.