public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Petr Vorel <pvorel@suse.cz>
To: "Aleksa Sarai" <cyphar@cyphar.com>,
	"Andrea Cervesato" <andrea.cervesato@suse.de>,
	ltp@lists.linux.it, "Alexey Gladkov" <legion@kernel.org>,
	"Christian Brauner" <brauner@kernel.org>,
	"Cyril Hrubis" <chrubis@suse.cz>,
	"Adhemerval Zanella" <adhemerval.zanella@linaro.org>,
	"Gaël PORTAY" <gael.portay@rtone.fr>,
	linux-kernel@vger.kernel.org
Subject: Re: [LTP] [PATCH v4 0/5] Add fchmodat2 testing suite
Date: Fri, 2 Aug 2024 09:19:59 +0200	[thread overview]
Message-ID: <20240802071959.GA1593427@pevik> (raw)
In-Reply-To: <20240802054252.GA1582980@pevik>

Hi all,

...
> @Andrea, I guess we want something like this:

> +++ testcases/kernel/syscalls/fchmodat2/fchmodat2_01.c
> @@ -43,9 +43,10 @@ static void test_symbolic_link(void)
>  	verify_mode(fd_dir, FNAME, S_IFREG | 0700);
>  	verify_mode(fd_dir, SNAME, S_IFLNK | 0777);

> -	TST_EXP_PASS(fchmodat2(fd_dir, SNAME, 0640, AT_SYMLINK_NOFOLLOW));
> -	verify_mode(fd_dir, FNAME, S_IFREG | 0700);
> -	verify_mode(fd_dir, SNAME, S_IFLNK | 0640);
> +	if (tst_kvercmp(6, 6, 0) >= 0) {
> +		TST_EXP_FAIL(tst_syscall(__NR_fchmodat2, fd_dir, SNAME, 0640,
> +					 AT_SYMLINK_NOFOLLOW), EOPNOTSUPP);
> +	}
>  }

Actually, this has been backported to all stable/LTS trees (up to 4.19).
Thus there should not be a version check, but instead suggesting a missing
5d1f903f75a8 commit.

	.tags = (const struct tst_tag[]) {
		{"linux-git", "5d1f903f75a8"},
		{}
	}

Kind regards,
Petr

      parent reply	other threads:[~2024-08-02  7:20 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20240801-fchmodat2-v4-0-7f2f11a53a09@suse.com>
2024-08-01 16:57 ` [LTP] [PATCH v4 0/5] Add fchmodat2 testing suite Petr Vorel
2024-08-02  1:29   ` Aleksa Sarai
2024-08-02  5:42     ` Petr Vorel
2024-08-02  6:13       ` Andrea Cervesato
2024-08-02  7:49         ` Petr Vorel
2024-08-02  7:58           ` Andrea Cervesato
2024-08-02  9:35         ` Aleksa Sarai
2024-08-02  7:19       ` Petr Vorel [this message]

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=20240802071959.GA1593427@pevik \
    --to=pvorel@suse.cz \
    --cc=adhemerval.zanella@linaro.org \
    --cc=andrea.cervesato@suse.de \
    --cc=brauner@kernel.org \
    --cc=chrubis@suse.cz \
    --cc=cyphar@cyphar.com \
    --cc=gael.portay@rtone.fr \
    --cc=legion@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --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