Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1642871rdd; Thu, 11 Jan 2024 05:27:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IFxXP1GkPBT/CVCgcb4o6EF8nYcnGuXJknRrEQTPV7ztgILLnuW+I1csrlQhJXUOKn8zWob X-Received: by 2002:a05:6358:9999:b0:175:6b16:437 with SMTP id j25-20020a056358999900b001756b160437mr1213649rwb.41.1704979668108; Thu, 11 Jan 2024 05:27:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704979668; cv=none; d=google.com; s=arc-20160816; b=DI6VE+K5fZjSPtga0VCbmZe2uxKReUwVDlMbmzpNk12oqQWnmB9JFTXyARFhxUMuCQ Z6mY1lLZv/+nLCkr6WGY7INXDEQcFlaIMo7a/emhooYuByNNVkuEL59MPCEBhA/uSbc1 SFtCX6OZv1UkByuDKeeTgztODJV2wKxSJY0kelzW9wrYUZt9GfekE14jVT/G0E4lVHXU B640H0p9v1q0sDdsj5B5mt/6SCKmhNED4Y5l8EobMyeaY8A1JLc6wyzgnLRzy+lIvDQq Dm1E15IsXBpYu1WMjlWchkpm/AskZkn9e2gE4pOLjd+sst/rpl+w35fCnW+4FILUYyQg VDaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=B3ufRhQ+cO2nApi6Jysaq3DXF79qqyBNnU7MpkWJjlc=; fh=9MgW3JMhi35HgkWiKGa6dPN3EPUnk4s+9bOG7uCvLgs=; b=f5PiIv87vl7PKqxhzd+SgCcEDDd5Z3RrsrlN4Nzw87kii85+cSnTUymde0iuCLFAHb CiC30rZgSGp9KjpzOKiAOXpIk74RaO7/KdJtYiN30L2jCtwuE4OLhMqObbzBRR6GlKOL 61oxx0OBuIdUzVI5UxAvtj+z9kYOr+TwUjwFnsufXbAhdeoayezudIWOq2x0uy9I8I8Y zeRgXI38AleXKpJWFClnq6jlm2QcJTzGtqd8Y/W7Et1xjIVxJKtH43dSI3bRiUqoCpaX WByjvcCnPYqViYF21mJiw+b9D1wFi8Md+mOx6iugAVdi7vT/3vX8n2KPdijuMMZk3Nzx lh7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@digikod.net header.s=20191114 header.b=mEvfMIL8; spf=pass (google.com: domain of linux-kernel+bounces-23653-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23653-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id f49-20020a056a000b3100b006d9b61a9bedsi1033794pfu.120.2024.01.11.05.27.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 05:27:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-23653-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@digikod.net header.s=20191114 header.b=mEvfMIL8; spf=pass (google.com: domain of linux-kernel+bounces-23653-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23653-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 826A8B233B5 for ; Thu, 11 Jan 2024 13:27:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 838D915EB6; Thu, 11 Jan 2024 13:27:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=digikod.net header.i=@digikod.net header.b="mEvfMIL8" Received: from smtp-8faa.mail.infomaniak.ch (smtp-8faa.mail.infomaniak.ch [83.166.143.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 135B215EA1 for ; Thu, 11 Jan 2024 13:27:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=digikod.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=digikod.net Received: from smtp-2-0000.mail.infomaniak.ch (unknown [10.5.36.107]) by smtp-3-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4T9lp50cJjzMqlwl; Thu, 11 Jan 2024 13:27:25 +0000 (UTC) Received: from unknown by smtp-2-0000.mail.infomaniak.ch (Postfix) with ESMTPA id 4T9lp40hDzzMpnPr; Thu, 11 Jan 2024 14:27:23 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=digikod.net; s=20191114; t=1704979644; bh=NcqqHqbHcG+SCp8ggpuwIKesgMZhBMGU2oOkDWhEbbM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mEvfMIL8w/91vuf2+ilbVcjIHYmM1diMZINM0JzdDDczWXcvNNoaBmlCHuEJQnw3L BF4gtyQax3ytNPKu7AV8CoDCavZzV54n9xTZq2APhQB677qFd/Jar7UulQVKRDVU0Y Ili5KwP5JpLXiJb25B6Fasjvym0M9aOWUuRxGLpk= Date: Thu, 11 Jan 2024 14:27:22 +0100 From: =?utf-8?Q?Micka=C3=ABl_Sala=C3=BCn?= To: Hu Yadi 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 Subject: Re: [PATCH v4] selftests/move_mount_set_group:Make tests build with old libc Message-ID: <20240111.mee0ohZie5he@digikod.net> References: <20240111113229.10820-1-hu.yadi@h3c.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240111113229.10820-1-hu.yadi@h3c.com> X-Infomaniak-Routing: alpha On Thu, Jan 11, 2024 at 07:32:29PM +0800, Hu Yadi wrote: > From: "Hu.Yadi" > > Replace SYS_ with __NR_. Using the __NR_ > notation, provided by UAPI, is useful to build tests on systems without > the SYS_ 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 Sorry, it should have been Reviewed-by: Mickaël Salaün Also, this is maintained by the VFS maintainers. I CCed three relevant addresses. > Signed-off-by: Hu.Yadi > Suggested-by: Jiao > Reviewed-by: Berlin > --- > 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 > >