Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp1473375ybf; Thu, 27 Feb 2020 11:39:41 -0800 (PST) X-Google-Smtp-Source: APXvYqwJXpQ6GVAB08I8iY1xVuvY1xScQA77SQMla7MsbMNPkHoXDkas9GjkdKCXf/30sqGuX75w X-Received: by 2002:a9d:20c1:: with SMTP id x59mr428877ota.286.1582832381151; Thu, 27 Feb 2020 11:39:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582832381; cv=none; d=google.com; s=arc-20160816; b=UABFVeumPM4nLBCsPe3obhVH2kcjRjoihYWq86G/H7055oYdWr5buNzAMuRbL71HBT 0O6/9hWMXiWTsVS9Ri70O1llmyUhNFUvgnw7IeVUoCr8m0bGmN+1pBvDOrdQ8wwUYNbi Lc8sM4R2KJIjKrQwyV0fWTnRpEnbcPyKEyyxOnnSR+wnfiDeo/Ce+9uiytR/FI1fxxDF z+jjGMHWhRSsIAm87t5SjJfR3l6NpkZi4747g8QSsw1SMCbrR39CrMWOFXH/dTg0+oEe udVzLeHjDRuZgrlmWb9hH1RTvUy4LGiE1mRUDOMw/MTUVRIsTNCYSv/Dy4uTTVggmdDf MoNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :mime-version:references:in-reply-to:date:cc:to:from:subject; bh=S17p8qU2YcbjcHSdWLaBbhpx8DjIqyWS99i1gUKljJY=; b=zAlKsvdbjWNUMAUplavWN4t/hd1ALIQNZCwaioYSLujSguxeiPxWKo19L33qjyiJ7c hEYK4/az3xWE725jNBcD+rJQ6RUIuDcFCNVt+NAdm2Oh4oYbQN2bjGC0COry1jbScDPp lcccrDOcYjDD+p+RbxBv+SViNDRx6tg/OOjA89jEkEv930uiRxLy5jzg4dDJYAMuFYX9 uM50gLIvt6Wct3sh/OPrLquPMLEOPQtqQsKoTSNMqnlEOxANemsRj+yBxPKH0FhKcIgc sFHodLF8bVHaAYQXKlJIWXdcsxqkcW3ZBoZZQCJKoKyGVPhnzEYdyJIC9UIntdDhO0sv qy2A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r6si127046otn.216.2020.02.27.11.39.29; Thu, 27 Feb 2020 11:39:41 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730562AbgB0TiV (ORCPT + 99 others); Thu, 27 Feb 2020 14:38:21 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:24374 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730489AbgB0TiU (ORCPT ); Thu, 27 Feb 2020 14:38:20 -0500 Received: from pps.filterd (m0098410.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 01RJT4Ne054478 for ; Thu, 27 Feb 2020 14:38:19 -0500 Received: from e06smtp03.uk.ibm.com (e06smtp03.uk.ibm.com [195.75.94.99]) by mx0a-001b2d01.pphosted.com with ESMTP id 2ydq6jnhp0-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 27 Feb 2020 14:38:19 -0500 Received: from localhost by e06smtp03.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 27 Feb 2020 19:38:17 -0000 Received: from b06cxnps3075.portsmouth.uk.ibm.com (9.149.109.195) by e06smtp03.uk.ibm.com (192.168.101.133) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Thu, 27 Feb 2020 19:38:13 -0000 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 01RJcBHG58917066 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 27 Feb 2020 19:38:11 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 586A5AE053; Thu, 27 Feb 2020 19:38:11 +0000 (GMT) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E862FAE045; Thu, 27 Feb 2020 19:38:09 +0000 (GMT) Received: from localhost.localdomain (unknown [9.85.166.13]) by d06av26.portsmouth.uk.ibm.com (Postfix) with ESMTP; Thu, 27 Feb 2020 19:38:09 +0000 (GMT) Subject: Re: [PATCH] ima: add a new CONFIG for loading arch-specific policies From: Mimi Zohar To: Lakshmi Ramasubramanian , Nayna Jain , linux-integrity@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-efi@vger.kernel.org, linux-s390@vger.kernel.org Cc: Ard Biesheuvel , Martin Schwidefsky , Philipp Rudo , Michael Ellerman , linux-kernel@vger.kernel.org Date: Thu, 27 Feb 2020 14:38:09 -0500 In-Reply-To: <1582749379.10443.246.camel@linux.ibm.com> References: <1582744207-25969-1-git-send-email-nayna@linux.ibm.com> <94fe39a9-db9e-211d-d9b7-4cfe1a270e6f@linux.microsoft.com> <1582749379.10443.246.camel@linux.ibm.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.20.5 (3.20.5-1.fc24) Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 x-cbid: 20022719-0012-0000-0000-0000038AEA57 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 20022719-0013-0000-0000-000021C794C1 Message-Id: <1582832289.10443.298.camel@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.572 definitions=2020-02-27_06:2020-02-26,2020-02-27 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 adultscore=0 spamscore=0 impostorscore=0 suspectscore=0 bulkscore=0 mlxlogscore=946 clxscore=1015 priorityscore=1501 malwarescore=0 mlxscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2001150001 definitions=main-2002270136 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2020-02-26 at 15:36 -0500, Mimi Zohar wrote: > On Wed, 2020-02-26 at 11:21 -0800, Lakshmi Ramasubramanian wrote: > > Hi Nayna, > > > > > + > > > +config IMA_SECURE_AND_OR_TRUSTED_BOOT > > > + bool > > > + depends on IMA > > > + depends on IMA_ARCH_POLICY > > > + default n > > > + help > > > + This option is selected by architectures to enable secure and/or > > > + trusted boot based on IMA runtime policies. > > > > > > > Why is the default for this new config "n"? > > Is there any reason to not turn on this config if both IMA and > > IMA_ARCH_POLICY are set to y? > > Good catch.  Having "IMA_SECURE_AND_OR_TRUSTED_BOOT" depend on > "IMA_ARCH_POLICY" doesn't make sense.  "IMA_ARCH_POLICY" needs to be > selected. After discussing this some more with Nayna, the new Kconfig indicates that the architecture defines the arch_ima_get_secureboot() and arch_get_ima_policy() functions, but doesn't automatically enable IMA_ARCH_POLICY.  The decision to enable IMA_ARCH_POLICY is left up to whoever is building the kernel.  The patch, at least this aspect of it, is correct. Mimi