Linux Test Project
 help / color / mirror / Atom feed
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: Wed,  3 Jun 2026 09:43:17 +0000	[thread overview]
Message-ID: <20260603094318.4334-1-linuxtestproject.agent@gmail.com> (raw)
In-Reply-To: <20260603065744.47106-2-sachinp@linux.ibm.com>

Hi Sachin,

Thank you for the patches. This is a welcome addition — replacing the old
unmaintained bash script with a proper set of modular C tests with full LTP
framework integration. Below are my review comments.

---

[PATCH 1/8] fs/acl: Add ACL_USER_OBJ permissions test

acl_lib.h: Copyright header

  The .c and .h files all carry:
    * Copyright (c) IBM, 2026

  The correct LTP convention is:
    * Copyright (c) 2026 IBM

  (year first, then author, no comma). Same applies to all .c/.h files
  in the series.

acl_user_obj01.c: The test logic is correct.

  SAFE_CHMOD(TESTDIR, 0500) followed by try_create_as() expecting EACCES
  is sound. Setting a minimal ACL (USER_OBJ, GROUP_OBJ, OTHER) via
  acl_set_file() updates the inode mode bits, so USER_OBJ=rwx makes the
  subsequent creation succeed. No issues here.

---

[PATCH 3/8] fs/acl: Add symlink ACL operations test

acl_link01.c: Test does not verify what it claims

  The commit message says:
    "acl_set_file() on a symlink sets ACL on the target file"

  But the test only checks the return value of acl_set_file() and
  acl_get_file() through the symlink — it never verifies that the ACL
  was actually set on TESTFILE (the symlink target).

  The retrieved ACL is read through the symlink and then immediately
  freed without inspecting its contents or comparing it with what was
  set. So the claim that "ACL operations follow symlinks rather than
  operating on the link itself" is not actually proven.

  To properly verify this, also call acl_get_file(TESTFILE, ...) and
  confirm the expected entries are present, or at minimum compare the
  ACL retrieved via the symlink against the ACL retrieved via the
  direct file path.

---

[PATCH 7/8] fs/acl: Add extended attributes test

Commit message body contains file-change bullets:

  The last two bullet points in the commit body are:
    - Update runtest/fs to include xattr_test01
    - Update .gitignore for new test binary

  These describe file modifications rather than the test's purpose or
  rationale. The diff already shows what files were modified. Remove
  these bullets from the commit message body; keep only the description
  of what the test validates.

---

Pre-existing issues (informational, not blocking):

  None identified.

---

Verdict: Needs revision

Regards,
LTP AI Reviewer

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

       reply	other threads:[~2026-06-03  9:43 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20260603065744.47106-2-sachinp@linux.ibm.com>
2026-06-03  9:43 ` linuxtestproject.agent [this message]
2026-06-03 12:49   ` [LTP] fs/acl: Add ACL_USER_OBJ permissions test Sachin Sant
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
  -- strict thread matches above, loose matches on Subject: below --
2026-06-03 14:01 [LTP] [PATCH 1/8] " Sachin Sant
2026-06-03 14:52 ` [LTP] " linuxtestproject.agent
2026-06-02 12:19 [LTP] [PATCH v1 1/8] " Sachin Sant
2026-06-02 12:52 ` [LTP] " linuxtestproject.agent
2026-06-05  9:20   ` Andrea Cervesato via ltp
2026-05-31 12:45 [LTP] [RFC][PATCH 1/8] " Sachin Sant
2026-06-01  6:48 ` [LTP] " 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=20260603094318.4334-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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox