* Re: [PATCH v4] selftests/move_mount_set_group:Make tests build with old libc [not found] <20240111113229.10820-1-hu.yadi@h3c.com> @ 2024-01-11 13:27 ` Mickaël Salaün 2024-01-18 2:03 ` 回复: " Huyadi 0 siblings, 1 reply; 2+ messages in thread From: Mickaël Salaün @ 2024-01-11 13:27 UTC (permalink / raw) To: Hu Yadi Cc: jmorris, serge, shuah, mathieu.desnoyers, linux-api, linux-kernel, linux-security-module, linux-kselftest, 514118380, Christian Brauner, linux-fsdevel, Shuah Khan On Thu, Jan 11, 2024 at 07:32:29PM +0800, Hu Yadi wrote: > From: "Hu.Yadi" <hu.yadi@h3c.com> > > Replace SYS_<syscall> with __NR_<syscall>. Using the __NR_<syscall> > notation, provided by UAPI, is useful to build tests on systems without > the SYS_<syscall> definitions. > > Replace SYS_move_mount with __NR_move_mount > > Similar changes: commit 87129ef13603 ("selftests/landlock: Make tests build with old libc") > > Acked-by: Mickaël Salaün <mic@digikod.net> Sorry, it should have been Reviewed-by: Mickaël Salaün <mic@digikod.net> Also, this is maintained by the VFS maintainers. I CCed three relevant addresses. > Signed-off-by: Hu.Yadi <hu.yadi@h3c.com> > Suggested-by: Jiao <jiaoxupo@h3c.com> > Reviewed-by: Berlin <berlin@h3c.com> > --- > Changes v4 -> v3: > - Adjust comments for consistent > - Add Acked-by > Changes v2 -> v3: > - Adjust comments > Changes v1 -> v2: > - Fix mail of Suggested-by and Reviewed-by > > .../move_mount_set_group/move_mount_set_group_test.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/tools/testing/selftests/move_mount_set_group/move_mount_set_group_test.c b/tools/testing/selftests/move_mount_set_group/move_mount_set_group_test.c > index 50ed5d475dd1..bcf51d785a37 100644 > --- a/tools/testing/selftests/move_mount_set_group/move_mount_set_group_test.c > +++ b/tools/testing/selftests/move_mount_set_group/move_mount_set_group_test.c > @@ -218,7 +218,7 @@ static bool move_mount_set_group_supported(void) > if (mount(NULL, SET_GROUP_FROM, NULL, MS_SHARED, 0)) > return -1; > > - ret = syscall(SYS_move_mount, AT_FDCWD, SET_GROUP_FROM, > + ret = syscall(__NR_move_mount, AT_FDCWD, SET_GROUP_FROM, > AT_FDCWD, SET_GROUP_TO, MOVE_MOUNT_SET_GROUP); > umount2("/tmp", MNT_DETACH); > > @@ -363,7 +363,7 @@ TEST_F(move_mount_set_group, complex_sharing_copying) > CLONE_VM | CLONE_FILES); ASSERT_GT(pid, 0); > ASSERT_EQ(wait_for_pid(pid), 0); > > - ASSERT_EQ(syscall(SYS_move_mount, ca_from.mntfd, "", > + ASSERT_EQ(syscall(__NR_move_mount, ca_from.mntfd, "", > ca_to.mntfd, "", MOVE_MOUNT_SET_GROUP > | MOVE_MOUNT_F_EMPTY_PATH | MOVE_MOUNT_T_EMPTY_PATH), > 0); > -- > 2.23.0 > > ^ permalink raw reply [flat|nested] 2+ messages in thread
* 回复: [PATCH v4] selftests/move_mount_set_group:Make tests build with old libc 2024-01-11 13:27 ` [PATCH v4] selftests/move_mount_set_group:Make tests build with old libc Mickaël Salaün @ 2024-01-18 2:03 ` Huyadi 0 siblings, 0 replies; 2+ messages in thread From: Huyadi @ 2024-01-18 2:03 UTC (permalink / raw) To: 'Mickaël Salaün', 'Christian Brauner', Christian Brauner, serge@hallyn.com, Shuah Khan Cc: jmorris@namei.org, serge@hallyn.com, shuah@kernel.org, mathieu.desnoyers@efficios.com, linux-api@vger.kernel.org, linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kselftest@vger.kernel.org, 514118380@qq.com, Christian Brauner, linux-fsdevel@vger.kernel.org, Shuah Khan >On Thu, Jan 11, 2024 at 07:32:29PM +0800, Hu Yadi wrote: >> From: "Hu.Yadi" <hu.yadi@h3c.com> >> >> Replace SYS_<syscall> with __NR_<syscall>. Using the __NR_<syscall> >> notation, provided by UAPI, is useful to build tests on systems >> without the SYS_<syscall> definitions. >> >> Replace SYS_move_mount with __NR_move_mount >> >> Similar changes: commit 87129ef13603 ("selftests/landlock: Make tests >> build with old libc") >> >> Acked-by: Mickaël Salaün <mic@digikod.net> > >Sorry, it should have been Reviewed-by: Mickaël Salaün <mic@digikod.net> > >Also, this is maintained by the VFS maintainers. I CCed three relevant addresses. Any progesss about this patch ? Thanks > >> Signed-off-by: Hu.Yadi <hu.yadi@h3c.com> >> Suggested-by: Jiao <jiaoxupo@h3c.com> >> Reviewed-by: Berlin <berlin@h3c.com> >> --- >> Changes v4 -> v3: >> - Adjust comments for consistent >> - Add Acked-by >> Changes v2 -> v3: >> - Adjust comments >> Changes v1 -> v2: >> - Fix mail of Suggested-by and Reviewed-by >> >> .../move_mount_set_group/move_mount_set_group_test.c | 4 ++-- >> 1 file changed, 2 insertions(+), 2 deletions(-) >> >> diff --git >> a/tools/testing/selftests/move_mount_set_group/move_mount_set_group_te >> st.c >> b/tools/testing/selftests/move_mount_set_group/move_mount_set_group_te >> st.c index 50ed5d475dd1..bcf51d785a37 100644 >> --- >> a/tools/testing/selftests/move_mount_set_group/move_mount_set_group_te >> st.c >> +++ b/tools/testing/selftests/move_mount_set_group/move_mount_set_grou >> +++ p_test.c >> @@ -218,7 +218,7 @@ static bool move_mount_set_group_supported(void) >> if (mount(NULL, SET_GROUP_FROM, NULL, MS_SHARED, 0)) >> return -1; >> >> - ret = syscall(SYS_move_mount, AT_FDCWD, SET_GROUP_FROM, >> + ret = syscall(__NR_move_mount, AT_FDCWD, SET_GROUP_FROM, >> AT_FDCWD, SET_GROUP_TO, MOVE_MOUNT_SET_GROUP); >> umount2("/tmp", MNT_DETACH); >> >> @@ -363,7 +363,7 @@ TEST_F(move_mount_set_group, complex_sharing_copying) >> CLONE_VM | CLONE_FILES); ASSERT_GT(pid, 0); >> ASSERT_EQ(wait_for_pid(pid), 0); >> >> - ASSERT_EQ(syscall(SYS_move_mount, ca_from.mntfd, "", >> + ASSERT_EQ(syscall(__NR_move_mount, ca_from.mntfd, "", >> ca_to.mntfd, "", MOVE_MOUNT_SET_GROUP >> | MOVE_MOUNT_F_EMPTY_PATH | MOVE_MOUNT_T_EMPTY_PATH), >> 0); >> -- >> 2.23.0 >> >> ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-01-18 2:04 UTC | newest] Thread overview: 2+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <20240111113229.10820-1-hu.yadi@h3c.com> 2024-01-11 13:27 ` [PATCH v4] selftests/move_mount_set_group:Make tests build with old libc Mickaël Salaün 2024-01-18 2:03 ` 回复: " Huyadi
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).