Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp978630imj; Fri, 15 Feb 2019 09:58:55 -0800 (PST) X-Google-Smtp-Source: AHgI3IaO3y3kQexg0SwPF9hoYKSiPJtWSaDpcBpqWizQgOSVtmeQgopit3sFaukH04RkEgtVVRv4 X-Received: by 2002:aa7:819a:: with SMTP id g26mr10907586pfi.187.1550253535847; Fri, 15 Feb 2019 09:58:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550253535; cv=none; d=google.com; s=arc-20160816; b=r8L/vEPfdhQ2+UpefMYFlks3SP/5M5O0JeUIMIc4aU1hUt+bBOFOHi+jFFatBYO8M7 cLnwumtcD/bD32RxHdETA5SkwGSclt+NVItCIWvULix72RGxass6EezmEtFki7wNz1iW WsXZofCCwnx4McJlLSNiZr1vl77a1ikSXuRE2qgCR6NTEHpqLUelkCWarl2BayJ57CLq +bnqPF186cPur9Se/u6uGPiIja9MnrT78HBt0g0oxOSwONPjqLd5YsAh5EVDKAZVNp1K CU2q26wIGgIY8XIza6pijozZmPWuRnAD/0X0nDf7GdDTTO3mwBQPwuo+LJHvBnnQzoNF JrGA== 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=5xYqTBDXeTaJVO2heJapQsKAsXmBoA4gPiUZ6Zahtks=; b=KhD1y9He3IFyN0f6OGSMTDAkpPTFMRE872MiPI7WqvGmjxrIdZ2sh9Uskngg24SJ0U tKEu7l3flFExOb2y+a/mhCFAAoeyHQLNvU4Zx73WoxCzhD8pcoXad7TOh9NmVSgvq1Vw uWfcAQubNs+p866/VrftoHxw+RKDA09maml4NWrVORg6vmQriwbPZXoq8U5gp8PlKSCm AuX3xMITTcKf6xlLfBKO5vMEq7Cb82COJCkP0bj2IjjmX5h5eYZ/m8tc7BodpUiJ0eaf qRfZoouB2V8R2LLA+GP2gqersdo6r7Rno9Q5WIzTfuw374Epr5bIBrTpigdoQlV/7WcV gykg== 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 v19si5754620pff.78.2019.02.15.09.58.39; Fri, 15 Feb 2019 09:58:55 -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 S1730447AbfBOR6f (ORCPT + 99 others); Fri, 15 Feb 2019 12:58:35 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:33464 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729605AbfBOR6f (ORCPT ); Fri, 15 Feb 2019 12:58:35 -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 x1FHtHZC021436 for ; Fri, 15 Feb 2019 12:58:34 -0500 Received: from e06smtp05.uk.ibm.com (e06smtp05.uk.ibm.com [195.75.94.101]) by mx0a-001b2d01.pphosted.com with ESMTP id 2qp1rbhaf9-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 15 Feb 2019 12:58:34 -0500 Received: from localhost by e06smtp05.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 15 Feb 2019 17:58:31 -0000 Received: from b06cxnps4076.portsmouth.uk.ibm.com (9.149.109.198) 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) Fri, 15 Feb 2019 17:58:28 -0000 Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x1FHwR7L2228508 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 15 Feb 2019 17:58:27 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0D75A52052; Fri, 15 Feb 2019 17:58:27 +0000 (GMT) Received: from localhost.localdomain (unknown [9.80.92.223]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTP id 0D1C25204F; Fri, 15 Feb 2019 17:58:25 +0000 (GMT) Subject: Re: [PATCH v3] x86/ima: require signed kernel modules From: Mimi Zohar To: Luis Chamberlain Cc: linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, Jessica Yu , David Howells , Seth Forshee , "Bruno E . O . Meneguele" Date: Fri, 15 Feb 2019 12:58:15 -0500 In-Reply-To: <20190215170144.GH11489@garbanzo.do-not-panic.com> References: <1550249418-7986-1-git-send-email-zohar@linux.ibm.com> <20190215170144.GH11489@garbanzo.do-not-panic.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: 19021517-0020-0000-0000-000003174E94 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19021517-0021-0000-0000-000021688570 Message-Id: <1550253495.7468.0.camel@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-02-15_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=888 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1902150122 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2019-02-15 at 09:01 -0800, Luis Chamberlain wrote: > On Fri, Feb 15, 2019 at 11:50:18AM -0500, Mimi Zohar wrote: > > Have the IMA architecture specific policy require signed kernel modules > > on systems with secure boot mode enabled; and coordinate the different > > signature verification methods, so only one signature is required. > > > > Requiring appended kernel module signatures may be configured, enabled > > on the boot command line, or with this patch enabled in secure boot > > mode. This patch defines set_module_sig_enforced(). > > > > To coordinate between appended kernel module signatures and IMA > > signatures, only define an IMA MODULE_CHECK policy rule if > > CONFIG_MODULE_SIG is not enabled. A custom IMA policy may still define > > and require an IMA signature. > > > > Signed-off-by: Mimi Zohar > > Reviewed-by: Luis Chamberlain Thanks!