Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp232835rdb; Fri, 6 Oct 2023 01:33:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG3tQgaOV4HEAf2Fm7M4le/R5d9u8oPWfUYIk2F91ywcmbDgPsqfki6+tXerGqbvk4nmlI5 X-Received: by 2002:a9d:69c1:0:b0:6bc:fdbd:ccb8 with SMTP id v1-20020a9d69c1000000b006bcfdbdccb8mr7858643oto.13.1696581219899; Fri, 06 Oct 2023 01:33:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696581219; cv=none; d=google.com; s=arc-20160816; b=GrOXHTyMSsxAzREpXV0TAixEuo13UWpKRiLHhSGp4ZuqUasKlReUW8H9ns6yxyFsUI HGuVsj+TJ7m/8UQ1vPFj1odbudR+Y+fa5WgASYOe66rJu5dhk7nz/u3x3pQtE2JS3/LQ RpmkCcWvF22gionirc/H2kIUqd2/7KPlbuyoC/7LJcXeiD9tRvpXRyT83XMhG/dG/aCM VMnc55qfytyhuui9PZ2ZiM074COa0brP9hrT8BgyQC1bgaqxms0VuOxSwqsmYh+sKQ6g Xodwm7HQomt0f1cYvINRfp4VT+ezv8QykY6ZeEXCJ8mXy+svNCi2AONZKQ4vxs5xrUVR eB7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:cc:user-agent:mime-version :date:message-id:dkim-signature; bh=gFYSluqueJGaWn53AA2zaWgyQkDWMb16F/Zf60J9hFI=; fh=OIYsgAT3/Ks2jkixISZXfMI9EfQwWDeTsXfm9b8xKng=; b=bsc4NWQYtqICyaTE2TDSTYq+v12dnWN3KMMedc/CezGbMJjSM46jYHwxIxnKq9kszk O91colw8TS2hNaxfMIfFdWte1YagsfQGAQsvqodABTXN8ge0q2xd2sdIaX3JqAipKrqJ RoYh4w77sCAvapQN+YhpwFnVOBNxJo7GESCIXI1wnnTHWZX0P6p3NTVQe5ahbbJz0Miy xWa6e8vRsAJuC4mY6UfTK7lXVFPXx5PpFEbdtthFa1mHOhXIfiRgV4ECva0FbFGhXBcW iyAeFyHlLeMSrhbQtpEBhtroviIcoqxCiLVYRnY5iK48NOrmLktHmtFwS4pG/BNHN8kC RvGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=PBOdEP0+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id h8-20020a636c08000000b005775c7e503csi3071910pgc.116.2023.10.06.01.33.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 01:33:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=PBOdEP0+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 287C5808A357; Fri, 6 Oct 2023 01:33:37 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231199AbjJFIda (ORCPT + 99 others); Fri, 6 Oct 2023 04:33:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230076AbjJFId2 (ORCPT ); Fri, 6 Oct 2023 04:33:28 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 146DB83; Fri, 6 Oct 2023 01:33:27 -0700 (PDT) Received: from [192.168.100.7] (unknown [39.34.184.141]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: usama.anjum) by madras.collabora.co.uk (Postfix) with ESMTPSA id DA7EE6612212; Fri, 6 Oct 2023 09:33:23 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1696581205; bh=B0KoqE5O/bPzO7yms7B1HC++2lsYZnDIX/VCD0yX2f4=; h=Date:Cc:Subject:To:References:From:In-Reply-To:From; b=PBOdEP0+hdTLeuud1StLfgQFkLt5/Y0N+gEPjQzyV4N3+v+tgLOjBEXrm2PT46UGo A8tAbjWuO23n9rJATgzn5Km70ZNW7jUx2cB0bFZayk0FAKaTHqMDk8Xz2/MEgNNdKn yw53URKIWz75Ca7fs/HoGC7AdKZra7Y0pYqcH6ogo3HLPJSpl6gEYIIRdwbrCurOzr /xaKNA2eYHxqBm+j5sFAkswm+i5l0XeUARCnrk00ATouXfLmEghdaCO9moWCxpl81f wNrSt8JdwAzpVbAqkXcOsyknhmp+24pWNvtYxbVubZiKYaNT+omSVhj1aHLfG0OZas DXuRlJCl3UIRA== Message-ID: <1c0ce608-20a4-4b72-8d5e-5308e119959b@collabora.com> Date: Fri, 6 Oct 2023 13:33:17 +0500 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Cc: Muhammad Usama Anjum , kernel@collabora.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/6] selftests: capabilities: remove duplicate unneeded defines Content-Language: en-US To: Shuah Khan , linux-kselftest@vger.kernel.org References: <20230805073809.1753462-1-usama.anjum@collabora.com> <95fc0e92-79ed-4748-a565-a82469d087f6@collabora.com> <9c0dae5b-a7ee-4399-abf3-883a5946f2f6@collabora.com> From: Muhammad Usama Anjum In-Reply-To: <9c0dae5b-a7ee-4399-abf3-883a5946f2f6@collabora.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Fri, 06 Oct 2023 01:33:37 -0700 (PDT) On 9/4/23 3:48 PM, Muhammad Usama Anjum wrote: > On 8/22/23 1:57 PM, Muhammad Usama Anjum wrote: >> Hi Shuah, >> >> Christian Brauner had picked [PATCH 4/6]. Others are still not picked. >> Please have a look. Shuah, I thought you had picked up these patches. But I'm unable to find them in the linux-next. I'll be re-sending 6th patch separately. Can you please pick up patch number 1, 2, 3 and 5 to your tree? Thanks > Soft reminder > >> >> Thanks, >> Usama >> >> On 8/5/23 12:37 PM, Muhammad Usama Anjum wrote: >>> These duplicate defines should automatically be picked up from kernel >>> headers. Use KHDR_INCLUDES to add kernel header files. >>> >>> Signed-off-by: Muhammad Usama Anjum >>> --- >>> tools/testing/selftests/capabilities/Makefile | 2 +- >>> tools/testing/selftests/capabilities/test_execve.c | 8 -------- >>> tools/testing/selftests/capabilities/validate_cap.c | 8 -------- >>> 3 files changed, 1 insertion(+), 17 deletions(-) >>> >>> diff --git a/tools/testing/selftests/capabilities/Makefile b/tools/testing/selftests/capabilities/Makefile >>> index 6e9d98d457d5b..411ac098308f1 100644 >>> --- a/tools/testing/selftests/capabilities/Makefile >>> +++ b/tools/testing/selftests/capabilities/Makefile >>> @@ -2,7 +2,7 @@ >>> TEST_GEN_FILES := validate_cap >>> TEST_GEN_PROGS := test_execve >>> >>> -CFLAGS += -O2 -g -std=gnu99 -Wall >>> +CFLAGS += -O2 -g -std=gnu99 -Wall $(KHDR_INCLUDES) >>> LDLIBS += -lcap-ng -lrt -ldl >>> >>> include ../lib.mk >>> diff --git a/tools/testing/selftests/capabilities/test_execve.c b/tools/testing/selftests/capabilities/test_execve.c >>> index df0ef02b40367..e3a352b020a79 100644 >>> --- a/tools/testing/selftests/capabilities/test_execve.c >>> +++ b/tools/testing/selftests/capabilities/test_execve.c >>> @@ -20,14 +20,6 @@ >>> >>> #include "../kselftest.h" >>> >>> -#ifndef PR_CAP_AMBIENT >>> -#define PR_CAP_AMBIENT 47 >>> -# define PR_CAP_AMBIENT_IS_SET 1 >>> -# define PR_CAP_AMBIENT_RAISE 2 >>> -# define PR_CAP_AMBIENT_LOWER 3 >>> -# define PR_CAP_AMBIENT_CLEAR_ALL 4 >>> -#endif >>> - >>> static int nerrs; >>> static pid_t mpid; /* main() pid is used to avoid duplicate test counts */ >>> >>> diff --git a/tools/testing/selftests/capabilities/validate_cap.c b/tools/testing/selftests/capabilities/validate_cap.c >>> index cdfc94268fe6e..60b4e7b716a75 100644 >>> --- a/tools/testing/selftests/capabilities/validate_cap.c >>> +++ b/tools/testing/selftests/capabilities/validate_cap.c >>> @@ -9,14 +9,6 @@ >>> >>> #include "../kselftest.h" >>> >>> -#ifndef PR_CAP_AMBIENT >>> -#define PR_CAP_AMBIENT 47 >>> -# define PR_CAP_AMBIENT_IS_SET 1 >>> -# define PR_CAP_AMBIENT_RAISE 2 >>> -# define PR_CAP_AMBIENT_LOWER 3 >>> -# define PR_CAP_AMBIENT_CLEAR_ALL 4 >>> -#endif >>> - >>> #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 19) >>> # define HAVE_GETAUXVAL >>> #endif >> > -- BR, Muhammad Usama Anjum