Received: by 2002:ac2:48a3:0:0:0:0:0 with SMTP id u3csp553630lfg; Fri, 11 Mar 2022 13:04:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJyBp0I2y1A6aaqjJDrPOCDyi/r383TQ2mO2HQufaUly/l6Vv1dEm54ZKtqaFrB+Jg8jpLnX X-Received: by 2002:a05:6a00:1501:b0:4f7:948d:14fa with SMTP id q1-20020a056a00150100b004f7948d14famr3584905pfu.74.1647032680406; Fri, 11 Mar 2022 13:04:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1647032680; cv=none; d=google.com; s=arc-20160816; b=OX81hLOpAc3mOTyzW3hedMr3Hpk0mtw6L0xA+iikAMVlI6hM46sb67A5vf0l4dOOyZ VmnfyM3zzdLLQu5Q0Ftv0UfB0+sd9/aZIoa1Su5qF+qCSQfguWW1LfivyA6JXftGRsge 6ee//W4Z6LTMeDV4ACjeao3BJ7FSq/dX1SpU3b2Pb6KqVKSN1LU3PJITQd7hMCn3VSSx yXccftuRkug52ktDUOWW2WJzTQwenf/d0b6Xyy+vkN/fL8hjN2BWKwMacgPFOLlDmoGo 2oINKq0te4ekLphUBKZjTPVThQ3VZLg34AkDkAvFgJsT25DOt/yKdOSvgy4I2Aw4qIT3 gSag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=XhJGHjHVPbBPIheFTHx0rLbWMIi0ArD/NqKVNEbi6gs=; b=K8WfI/gCin0i7nz6sez0/vOrvAiMvz6XazMR/OtNujGWiS1slBflhY+PA2xvyBMJ/a 7lQ2CGc4g4uCJ13lAlVZLwI2j8HEQtaf2Yu/Pc4cmdrho/mozt2RZ05+JaYzsm09aYZi FdB74x+J43DvPW/juJpdqto6gftRIT2e26AdYmUUj4pKsci+zQDJUn6HkVHyQKfdH1n0 PBG/Dx5DnY1u9PGb+mq992oPwVIK7GX9sZST1f7ly0jdWDUV8CGR2qRCEIJ14FDFA0a4 7r8lejCP7PAxx/IWY2cYtlbk1jKE1naXaAduqVDgpffowJFwh3a04qU7kppe+NnUiTHv 6DEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b="f/O2kspv"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id a13-20020a170902710d00b0014ed3d4b5d3si8226135pll.384.2022.03.11.13.04.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Mar 2022 13:04:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b="f/O2kspv"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A19E216FDD5; Fri, 11 Mar 2022 12:49:51 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344121AbiCJVqp (ORCPT + 99 others); Thu, 10 Mar 2022 16:46:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344107AbiCJVqk (ORCPT ); Thu, 10 Mar 2022 16:46:40 -0500 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A774194ABF; Thu, 10 Mar 2022 13:45:37 -0800 (PST) Received: from pps.filterd (m0098393.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 22AKVLGv029687; Thu, 10 Mar 2022 21:45:33 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=pp1; bh=XhJGHjHVPbBPIheFTHx0rLbWMIi0ArD/NqKVNEbi6gs=; b=f/O2kspviAFKDs1A5efITdSa9KIvD7njcBJAIanGshKkkcexBj7so0hlNciIssPaTqp7 WLaDKiOOfJ2+UDYk+aZyt810uK1jojjwZLM3Lzrsyds3LobVqc/YrkD2YVWkefrdMiLe QWHjAcHKzxjIegCUAu0nL6ySwkiOAZhpY3+FmPjBHCPLKb0/00/rP6f91PUSYdgdptw4 PjfEzfKKZvFeMVMl4Hve0CHihEN0rZ42iFWXnZzstF77fBmjGG8qmWIAmEhURwX9Nz+/ apMDyGuaDnLUqmHyZ7YcQ58ISmhSTEaG2I7BxS1LsR5VjOzRG5R+1Ws5sZd/qKlhehgM Qg== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 3eqnccdepe-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 10 Mar 2022 21:45:33 +0000 Received: from m0098393.ppops.net (m0098393.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.43/8.16.0.43) with SMTP id 22ALjWS6018038; Thu, 10 Mar 2022 21:45:32 GMT Received: from ppma01fra.de.ibm.com (46.49.7a9f.ip4.static.sl-reverse.com [159.122.73.70]) by mx0a-001b2d01.pphosted.com with ESMTP id 3eqnccdent-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 10 Mar 2022 21:45:32 +0000 Received: from pps.filterd (ppma01fra.de.ibm.com [127.0.0.1]) by ppma01fra.de.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 22ALgrpY017442; Thu, 10 Mar 2022 21:45:30 GMT Received: from b06cxnps3075.portsmouth.uk.ibm.com (d06relay10.portsmouth.uk.ibm.com [9.149.109.195]) by ppma01fra.de.ibm.com with ESMTP id 3ekyg8kp1h-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 10 Mar 2022 21:45:29 +0000 Received: from d06av23.portsmouth.uk.ibm.com (d06av23.portsmouth.uk.ibm.com [9.149.105.59]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 22ALjQt240304956 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 10 Mar 2022 21:45:26 GMT Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B3399A4051; Thu, 10 Mar 2022 21:45:26 +0000 (GMT) Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id AACA8A4040; Thu, 10 Mar 2022 21:45:22 +0000 (GMT) Received: from li-4b5937cc-25c4-11b2-a85c-cea3a66903e4.ibm.com.com (unknown [9.211.53.50]) by d06av23.portsmouth.uk.ibm.com (Postfix) with ESMTP; Thu, 10 Mar 2022 21:45:22 +0000 (GMT) From: Nayna Jain To: linux-integrity@vger.kernel.org, keyrings@vger.kernel.org Cc: dhowells@redhat.com, zohar@linux.ibm.com, jarkko@kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, dimitri.ledkov@canonical.com, seth@forshee.me, rnsastry@linux.ibm.com, Masahiro Yamada , Nayna Jain Subject: [PATCH v11 3/4] certs: conditionally build extract-cert if platform keyring is enabled Date: Thu, 10 Mar 2022 16:44:49 -0500 Message-Id: <20220310214450.676505-4-nayna@linux.ibm.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20220310214450.676505-1-nayna@linux.ibm.com> References: <20220310214450.676505-1-nayna@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: g_ZVBzIKgtvgHGkW3-KyQQVAmcb5fIM6 X-Proofpoint-GUID: bIWVXp3dpvyATzd7iURuY5n7ne5rbduO X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.816,Hydra:6.0.425,FMLib:17.11.64.514 definitions=2022-03-10_09,2022-03-09_01,2022-02-23_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=999 lowpriorityscore=0 adultscore=0 clxscore=1015 priorityscore=1501 impostorscore=0 spamscore=0 mlxscore=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2203100107 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org extract-cert is used outside certs/ by INTEGRITY_PLATFORM_KEYRING. Also build extract-cert if INTEGRITY_PLATFORM_KEYRING is enabled. Signed-off-by: Nayna Jain --- certs/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/certs/Makefile b/certs/Makefile index b92b6ff339d5..dfb48e043cfe 100644 --- a/certs/Makefile +++ b/certs/Makefile @@ -88,7 +88,11 @@ $(obj)/x509_revocation_list: $(CONFIG_SYSTEM_REVOCATION_KEYS) $(obj)/extract-cer targets += x509_revocation_list +ifeq ($(CONFIG_INTEGRITY_PLATFORM_KEYRING),y) +hostprogs-always-y := extract-cert +else hostprogs := extract-cert +endif HOSTCFLAGS_extract-cert.o = $(shell pkg-config --cflags libcrypto 2> /dev/null) HOSTLDLIBS_extract-cert = $(shell pkg-config --libs libcrypto 2> /dev/null || echo -lcrypto) -- 2.27.0