Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp5387440imb; Thu, 7 Mar 2019 14:35:51 -0800 (PST) X-Google-Smtp-Source: APXvYqwVX7mKjOEv1LnMXLkI1qTno/KTiTxWxkwhqIFS1A94ye5xIffsF77IUbIHhA5drjnUEc5F X-Received: by 2002:a65:49c4:: with SMTP id t4mr13758941pgs.421.1551998151814; Thu, 07 Mar 2019 14:35:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551998151; cv=none; d=google.com; s=arc-20160816; b=v30G3GRfZn2H1+IrTfrJVbSoRi4SGot+oh67iLKc88jtr7EwZWPWHu94dBQ87/tsJM N8TVjxY7OkNHuv1mcdwsMY5CoHpjfcMlg/j6XJJfQeRYg/f8JdZ43wIjnGsNkkdcEaUc i5m3dIMvVNhaWHXmoDj//o1hfhnyoTcXJrKberCr06ehxFvI7l9O4gCDh+Uy5mOOURCr uqSlV92T4i5vbNScLTX6vZVWx68l4fZIDA8i324bW2DQg7VFwIiA+hmJ8uXhxSDiivhi FX+n4zCdeyvhxev49mMw3kIkDjDiLnG9lyoDHL0Zcr+xVH0u1EHn8sRstcq0KhexOw26 /big== 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=YuSlZ4eyc6WovY1OW12IuohP0auF/iPAX+ePAZbn83I=; b=h/lrJ8FLmbZ80tkAyLY+N3t4P41xPDAj//KxyotwrcJSveWGh9lGyGgx1eYULSkXid t+YmXY9BYANUlzdewpm3RrIvwlNsf8z1FDF5PaHTGv7VrE2DUSE2YsOutejA5U4GptCY ZcS6RWBI0Vuo+Dd9aYDMBiKPwtnIXTCPH6LG8o3yUxTyiZm0I8ifRr9f0+SLcwU7cOdb MHEwSEvmPz9MbPFpJ7FBioQAqjU6gqiXXKu/+MqYWrMYAd3ezJ9NFjD2IFEnfOUYaaWr Wppjg8ITtfXIeaqSKfjiPe0eLe6ATntgzQ76zKLUhU48cqgHM9FE61jn+jMmtO1E0A+9 ggrA== 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 z78si5267276pfi.51.2019.03.07.14.35.36; Thu, 07 Mar 2019 14:35:51 -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 S1726259AbfCGWe4 (ORCPT + 99 others); Thu, 7 Mar 2019 17:34:56 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:37888 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726217AbfCGWez (ORCPT ); Thu, 7 Mar 2019 17:34:55 -0500 Received: from pps.filterd (m0098394.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x27MJ6tU004962 for ; Thu, 7 Mar 2019 17:34:54 -0500 Received: from e06smtp05.uk.ibm.com (e06smtp05.uk.ibm.com [195.75.94.101]) by mx0a-001b2d01.pphosted.com with ESMTP id 2r3ae34m23-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 07 Mar 2019 17:34:54 -0500 Received: from localhost by e06smtp05.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 7 Mar 2019 22:34:51 -0000 Received: from b06cxnps3074.portsmouth.uk.ibm.com (9.149.109.194) by e06smtp05.uk.ibm.com (192.168.101.135) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Thu, 7 Mar 2019 22:34:48 -0000 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x27MYltN55574654 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 7 Mar 2019 22:34:47 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 7A52BAE2CA; Thu, 7 Mar 2019 22:34:47 +0000 (GMT) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 572ADAE2CC; Thu, 7 Mar 2019 22:34:46 +0000 (GMT) Received: from localhost.localdomain (unknown [9.80.93.211]) by d06av26.portsmouth.uk.ibm.com (Postfix) with ESMTP; Thu, 7 Mar 2019 22:34:46 +0000 (GMT) Subject: Re: [PATCH v2] x86/ima: require signed kernel modules From: Mimi Zohar To: Matthew Garrett Cc: linux-integrity , LSM List , Linux Kernel Mailing List , Jessica Yu , Luis Chamberlain , David Howells , Seth Forshee , "Bruno E . O . Meneguele" Date: Thu, 07 Mar 2019 17:34:35 -0500 In-Reply-To: References: <1550060279-8624-1-git-send-email-zohar@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: 7bit X-TM-AS-GCONF: 00 x-cbid: 19030722-0020-0000-0000-0000031FF55E X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19030722-0021-0000-0000-000021720BA8 Message-Id: <1551998075.31706.455.camel@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-03-07_13:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1903070147 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2019-03-07 at 14:27 -0800, Matthew Garrett wrote: > On Wed, Feb 13, 2019 at 4:18 AM Mimi Zohar wrote: > > - if (IS_ENABLED(CONFIG_IMA_ARCH_POLICY) && arch_ima_get_secureboot()) > > + if (IS_ENABLED(CONFIG_IMA_ARCH_POLICY) && arch_ima_get_secureboot()) { > > + if (IS_ENABLED(CONFIG_MODULE_SIG)) > > + set_module_sig_enforced(); > > return sb_arch_rules; > > Linus previously pushed back on having the lockdown features > automatically enabled on secure boot systems. Why are we doing the > same in IMA? IMA-appraisal is extending the "secure boot" concept to the running system. Mimi