Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp861554ybt; Fri, 26 Jun 2020 13:24:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwAJfwQZ3tNTKPtyywsPN+C0amXJR+706wvVcALOUA7gBdJdRqr9O8qHGZvXcUqMgkN6Ldu X-Received: by 2002:a50:c44b:: with SMTP id w11mr5412701edf.317.1593203054492; Fri, 26 Jun 2020 13:24:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593203054; cv=none; d=google.com; s=arc-20160816; b=so03Crinw5nPGyNio5Lmfn7jU0w84UrsTzozFiY1XPV5EVNAUyv3v9NpiTtyE3t4JQ s5BKSeCcyLzoNODVk5Q2bojdfSN/O8IhY9spwy/OPxuKCmm8Z36dOvCPLHoMsVsPovmu ezxdLkOnQ8gq0eWkm79eoIigG+Rwf1TY3Kxo/A4pju3TdvBaHzdonnC3PBLfn6zXfTHl okjrOktjDf5/m7EMESCCdzARm0mqLsabH5HBTILAj/Z+5Db3Uj6HUHOvBm/RRZqKX/ub RR7xACWFS+scdl+zSLHUFiFiT+zDlpaFtAOIIdsg9PqB08Um7W3Qrxlh02MsllbRp4l9 fU7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=NYQNFgJYX5k/5FVST/YPCB8TxsdWAyGUpsBG1RbHJ6A=; b=DoTR95F2TJaAQp6ty2vU1fegzqyFewrW5j+dDD5ZkJ5r1hSCBvz7f+gjk25lbwh6iS PBRUIRoVxQcv6VCOnvqSSodKAZJqDpNh/oxFPjNi08fURbDez9KqlXFsT+IiJ/TJLLqu urRgEj1nfMSjYJLeGxUjfDLzerLMLWw9s799gbqzKJLmU+Fs2T5v7XT1TDMUvT4Jgnlf 03jD9g1qmExQL0mC6ynfmy/5tljCVx+MlVDM+eM6jT1ZwqpLwKieKoyFGpogC4jfcHS0 xZl+N+ephCSnd8IoE/Jl4LdvUHTA5SrxaoPrAYiGAJ8erhvWah6H8rXlZZnO7G8E1wtX HWeQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id 13si16924668ejz.228.2020.06.26.13.23.51; Fri, 26 Jun 2020 13:24:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726096AbgFZUXV (ORCPT + 99 others); Fri, 26 Jun 2020 16:23:21 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:42904 "EHLO mx0b-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725823AbgFZUXU (ORCPT ); Fri, 26 Jun 2020 16:23:20 -0400 Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 05QKIK0A128776; Fri, 26 Jun 2020 16:23:19 -0400 Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 31vvkysuqu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 26 Jun 2020 16:23:19 -0400 Received: from m0098421.ppops.net (m0098421.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 05QKJPhO131963; Fri, 26 Jun 2020 16:23:18 -0400 Received: from ppma04fra.de.ibm.com (6a.4a.5195.ip4.static.sl-reverse.com [149.81.74.106]) by mx0a-001b2d01.pphosted.com with ESMTP id 31vvkysuqa-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 26 Jun 2020 16:23:18 -0400 Received: from pps.filterd (ppma04fra.de.ibm.com [127.0.0.1]) by ppma04fra.de.ibm.com (8.16.0.42/8.16.0.42) with SMTP id 05QKGs8r014209; Fri, 26 Jun 2020 20:23:17 GMT Received: from b06avi18878370.portsmouth.uk.ibm.com (b06avi18878370.portsmouth.uk.ibm.com [9.149.26.194]) by ppma04fra.de.ibm.com with ESMTP id 31v7fwhaf3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 26 Jun 2020 20:23:16 +0000 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06avi18878370.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 05QKNEed66584868 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 26 Jun 2020 20:23:14 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0579C4C040; Fri, 26 Jun 2020 20:23:14 +0000 (GMT) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 52F1D4C044; Fri, 26 Jun 2020 20:23:13 +0000 (GMT) Received: from localhost.localdomain (unknown [9.80.213.63]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTP; Fri, 26 Jun 2020 20:23:13 +0000 (GMT) Message-ID: <1593202992.27152.463.camel@linux.ibm.com> Subject: Re: [PATCH v3 1/2] arch/ima: extend secure boot check to include trusted boot From: Mimi Zohar To: Bruno Meneguele , linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org Cc: erichte@linux.ibm.com, nayna@linux.ibm.com Date: Fri, 26 Jun 2020 16:23:12 -0400 In-Reply-To: <20200623202640.4936-2-bmeneg@redhat.com> References: <20200623202640.4936-1-bmeneg@redhat.com> <20200623202640.4936-2-bmeneg@redhat.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: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.216,18.0.687 definitions=2020-06-26_12:2020-06-26,2020-06-26 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 clxscore=1015 bulkscore=0 malwarescore=0 adultscore=0 impostorscore=0 priorityscore=1501 mlxscore=0 phishscore=0 cotscore=-2147483648 spamscore=0 mlxlogscore=999 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2006260138 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2020-06-23 at 17:26 -0300, Bruno Meneguele wrote: > diff --git a/security/integrity/ima/ima_main.c b/security/integrity/ima/ima_main.c > index c1583d98c5e5..a760094e8f8d 100644 > --- a/security/integrity/ima/ima_main.c > +++ b/security/integrity/ima/ima_main.c > @@ -694,7 +694,7 @@ int ima_load_data(enum kernel_load_data_id id) > switch (id) { > case LOADING_KEXEC_IMAGE: > if (IS_ENABLED(CONFIG_KEXEC_SIG) > - && arch_ima_get_secureboot()) { > + && arch_ima_secure_or_trusted_boot()) { > pr_err("impossible to appraise a kernel image without a file descriptor; try using kexec_file_load syscall.\n"); > return -EACCES; > } Only IMA-appraisal enforces file integrity based on policy. Mimi