Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3074453imu; Mon, 17 Dec 2018 12:51:21 -0800 (PST) X-Google-Smtp-Source: AFSGD/U22R/NCfIUNPzilgvPjdmKt3M79qrRTHFn09hOee4Ikr/wiGK4C8uC3q75qsQKzEMJa13Y X-Received: by 2002:a62:444b:: with SMTP id r72mr14383559pfa.184.1545079881737; Mon, 17 Dec 2018 12:51:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545079881; cv=none; d=google.com; s=arc-20160816; b=tDBqLZ3gK9hGHV8UtjOP2GKU/SiDGTbObt7LWkQxDj/eAOeM79Ro9LHB3Et9eOTigs X5sLlCgN49AOaLSepHYRqhigNXD6SBqGV+Fc01d5sxeG07+eEWLqLT4jnXtTeuUO1MwJ DzmI7htgWzuAwpoY8noXl0ftdhop3ej+4HgrAWDKH60HbU2AkJ3OzA9jYq5pTqf0sUnT bWr3eHOvAWd/J/6xk/aiMB58LSUWfuWq2IKZFLnc2oe2StE7lnhLhAdLQ3RdL2MGneBx CVVLN44b97/p2inUBYihe5U2V0D9ENhdRSOcTiQwryhw+Oeq9MZ6NdTtfbT6xCoyPWHn F+Xg== 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=wio+WvIFauSPiRVepM2lCur9KdB+Vo4l5h+h3IINuSI=; b=LxQzR141zVK0nZGQ9QoJYzmM1IUJmIkwk5SvTcN359tDeJA1LIU8vUJUV0SrWutzis onRlUQWcR+md8bVc/BpUp0EZS5XyC9zXu0gWYXsgF7xkQ5ibgVMGy5qbayWdG2C1ULt1 RJ58MKsMjS+PdoiFc5grkjj/KumpkE4uydkKV4UQQH1PKMRslpbOo4PSgTwMzUWFQSBr f5Fqz9SPcvIXDFkkolqnTND+4b1ZxJrhqkpgDXMC5q6rPaUKeBTuhOnoPasLsU/Iec0g 37eeCpRdSNHm3JxReFHxnAXuF9TmN1bi2bo8BAjU/WEadoU4WU1imY8ytphJZA74n6GZ TQLQ== 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 o14si11260854pgi.134.2018.12.17.12.51.06; Mon, 17 Dec 2018 12:51:21 -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 S2389377AbeLQUD6 (ORCPT + 99 others); Mon, 17 Dec 2018 15:03:58 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:37816 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2388749AbeLQUD6 (ORCPT ); Mon, 17 Dec 2018 15:03:58 -0500 Received: from pps.filterd (m0098419.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id wBHJx88v038084 for ; Mon, 17 Dec 2018 15:03:57 -0500 Received: from e06smtp01.uk.ibm.com (e06smtp01.uk.ibm.com [195.75.94.97]) by mx0b-001b2d01.pphosted.com with ESMTP id 2pegr7vhku-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 17 Dec 2018 15:03:56 -0500 Received: from localhost by e06smtp01.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 17 Dec 2018 20:03:55 -0000 Received: from b06cxnps3074.portsmouth.uk.ibm.com (9.149.109.194) by e06smtp01.uk.ibm.com (192.168.101.131) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Mon, 17 Dec 2018 20:03:53 -0000 Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id wBHK3qeq58851440 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 17 Dec 2018 20:03:52 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 522875205A; Mon, 17 Dec 2018 20:03:52 +0000 (GMT) Received: from dhcp-9-31-102-82.watson.ibm.com (unknown [9.31.102.82]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTP id A109E5204F; Mon, 17 Dec 2018 20:03:51 +0000 (GMT) Subject: Re: [PATCH] integrity: Remove references to module keyring From: Mimi Zohar To: James Morris , Thiago Jung Bauermann Cc: linux-security-module@vger.kernel.org, "Serge E. Hallyn" , linux-kernel@vger.kernel.org Date: Mon, 17 Dec 2018 15:03:51 -0500 In-Reply-To: References: <20181213013909.25737-1-bauerman@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: 18121720-4275-0000-0000-000002F1E626 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18121720-4276-0000-0000-000037FF1E94 Message-Id: <1545077031.10804.8.camel@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-12-17_07:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=3 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-1812170176 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2018-12-18 at 06:33 +1100, James Morris wrote: > On Wed, 12 Dec 2018, Thiago Jung Bauermann wrote: > > > >From what I can tell, it has never been used. This was introduced prior to Rusty's decision to use appended signatures for kernel modules. > > > > Signed-off-by: Thiago Jung Bauermann > > Mimi, can I add your acked-by? Acked-by: Mimi Zohar > > > > --- > > security/integrity/digsig.c | 1 - > > security/integrity/integrity.h | 5 ++--- > > 2 files changed, 2 insertions(+), 4 deletions(-) > > > > diff --git a/security/integrity/digsig.c b/security/integrity/digsig.c > > index c5585e75d5d9..1ff8eab7bc8c 100644 > > --- a/security/integrity/digsig.c > > +++ b/security/integrity/digsig.c > > @@ -34,7 +34,6 @@ static const char * const keyring_name[INTEGRITY_KEYRING_MAX] = { > > ".evm", > > ".ima", > > #endif > > - "_module", > > ".platform", > > }; > > > > diff --git a/security/integrity/integrity.h b/security/integrity/integrity.h > > index aafa1266e3d5..26c415c3f879 100644 > > --- a/security/integrity/integrity.h > > +++ b/security/integrity/integrity.h > > @@ -152,9 +152,8 @@ int integrity_kernel_read(struct file *file, loff_t offset, > > > > #define INTEGRITY_KEYRING_EVM 0 > > #define INTEGRITY_KEYRING_IMA 1 > > -#define INTEGRITY_KEYRING_MODULE 2 > > -#define INTEGRITY_KEYRING_PLATFORM 3 > > -#define INTEGRITY_KEYRING_MAX 4 > > +#define INTEGRITY_KEYRING_PLATFORM 2 > > +#define INTEGRITY_KEYRING_MAX 3 > > > > extern struct dentry *integrity_dir; > > > > >