Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1143869rdd; Wed, 10 Jan 2024 09:52:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IFPiDvwU82sJ3cORyIJ0EMRxGiXD40KZcNZeQC85VwfoJNbpJQyK3b0pRNPdRyaByhGVaSf X-Received: by 2002:a17:903:245:b0:1d2:fa24:2266 with SMTP id j5-20020a170903024500b001d2fa242266mr1358591plh.6.1704909173247; Wed, 10 Jan 2024 09:52:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704909173; cv=none; d=google.com; s=arc-20160816; b=uZ3XtrmeLwBVhm32Du2BaXfDJNq2RulXjBiv1K/3PMmgyliYqzjYdMnMNExzIKHZmr RDjgAlF6jabKcU3gY6GLwBcCzZND/+o2v9+qKIyUzj7ExUnNz6e84P1jntbaUaZjfd3e H5kd0CdacLTwgSJc2eRltoifmbCJ+4oekVfnd0BrRXVQD9sW4oskhTRo9L4lbptArji+ kiA7f4W6Wh/aKADY9o1bYkaB78LmXzJYj+ez/pejABuKbb4Sk6dHEqWA5Uey86pdQzpG BpMb3xDVlcYzJ5cScApd63e3ahxpWh+Yf3oa3vK2BzYyrF6Yw0PFIOgiiSaotUdbYUAD TW6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=++cr6blthJElYukCaKV7sLIpEp5psOisQHMGqQ1uzDs=; fh=hkQ4kQ30M4vIyxMoTwOIroKKZEye58sTVbvFtHhZh9g=; b=yzjR/ZEqBuHGkfcFagTRXWnAQv95GIKpLugKVBxZqEWcN0pVmq43Sd1t3f5XGp0L38 TRhG9a+eo1BREZas+RyP1vq5z+OhISJFQLiupjROXP1XXVS0skZG49I7i49zOExnvKNk 95/4iA1imfq6NXb+/ZtKIrkB0KQsoO9HkAWl7ybZpWIA7GsDEroY9ZzZ3AEL2sI9G58g VVD2N3vPe4X7j/Eh2NGJNenVhdpNHFhCNPh4+1K4WJNlwVk53UFBMPpP2pTYiH1ao+20 yexPnI+QXOtgbNH1MzftjpbMFDz1uSUPLFmLPBrFpT3IT9k3bx0dSnwL4bjvO/bMBlNz FVqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@digikod.net header.s=20191114 header.b=uvW7lai1; spf=pass (google.com: domain of linux-kernel+bounces-22564-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22564-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id q19-20020a170902789300b001cfcc0ca772si4005660pll.123.2024.01.10.09.52.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 09:52:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-22564-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@digikod.net header.s=20191114 header.b=uvW7lai1; spf=pass (google.com: domain of linux-kernel+bounces-22564-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22564-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id E5D852824FF for ; Wed, 10 Jan 2024 17:52:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 583C44D102; Wed, 10 Jan 2024 17:52:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=digikod.net header.i=@digikod.net header.b="uvW7lai1" Received: from smtp-8fac.mail.infomaniak.ch (smtp-8fac.mail.infomaniak.ch [83.166.143.172]) (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 CA46C4D129 for ; Wed, 10 Jan 2024 17:52:34 +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-3-0001.mail.infomaniak.ch (unknown [10.4.36.108]) by smtp-3-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4T9FZx5gjZzMq8qY; Wed, 10 Jan 2024 17:46:01 +0000 (UTC) Received: from unknown by smtp-3-0001.mail.infomaniak.ch (Postfix) with ESMTPA id 4T9FZx1ybDzMpp9p; Wed, 10 Jan 2024 18:46:01 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=digikod.net; s=20191114; t=1704908761; bh=fJI3lJ2trbNpt/lcevdQJPfwM2WNzCMZ8/35WyMDJ40=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=uvW7lai1GHZRi2Ov4YWFTFkw9oDpg+qfJyiGyobyAfsGGs/pr0EYY1+OCokZhwrhF lj+wwmzVVN5Y3r6gwwWs2bUarbQAu+Wtj23o4s4HErVP9T+3V4W/A1VJJBXmQ03vwM RNoTALmfK868PzUl/NxLJNAhn0TbG94cBwG86cSo= Date: Wed, 10 Jan 2024 18:45:59 +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, berlin@h3c.com Subject: Re: [PATCH v2] selftests/move_mount_set_group:Make tests build with old libc Message-ID: <20240110.Yap9Aw9aeghu@digikod.net> References: <20240110072901.5873-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 In-Reply-To: <20240110072901.5873-1-hu.yadi@h3c.com> X-Infomaniak-Routing: alpha On Wed, Jan 10, 2024 at 03:29:01PM +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. This looks a lot like that... https://git.kernel.org/stable/c/87129ef13603ae46c82bcd09eed948acf0506dbb > > Replace SYS_move_mount with __NR_move_mount > > Signed-off-by: Hu.Yadi > Suggested-by:Jiao > Reviewed-by:Berlin > --- > 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 >