Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp318818imu; Wed, 12 Dec 2018 17:43:43 -0800 (PST) X-Google-Smtp-Source: AFSGD/UlRnpugiuyUI+/K/wLtXJMmukLNBPiFIL5+bL9J1NtM1ytB/TuBfmqomdZA9P0xpVqaLDV X-Received: by 2002:a17:902:28aa:: with SMTP id f39mr22179897plb.297.1544665423345; Wed, 12 Dec 2018 17:43:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544665423; cv=none; d=google.com; s=arc-20160816; b=GVN78Ws2xzO7r+xU9C/SFom/oDmq4Q11QdQPRj+RfHlBMcyq/0xihhHpA2oMn6prbj YYFQUTX8COfOcWX+9Pz6dp/sq9XVblI+fmRe0ghf+wdLdNCAe3tvO14UajzPGj2ZY0W6 mtAN7LKoTOgudfR5Oie1pA5dNLm3UT0FyXepcdb3u3Fbx/ZVI5eDideUiYBGJWbesIpn 5j1gQrx/zz9vmYhwjJNrftKc56vLXJTFJNGv3v7KA5YWL0waG+GdUCmiyNXBspszCYkP vu1MRMrpJ3ofC02YWI8KCveK8yVt+1ybsgZ/Deb6RuR6IOMd1eKnl0bUVW3TdWva9FdP 0XRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=w/P07XdmIkK3xp5pT6Qbsldxq6WIwD+2qFrbEB2b92o=; b=oaHO0YQMWnBpNmxcLJVXG2xhDo53kDBoWOqVh+FUPtniON64GYVhV6VZImoZBWTst0 Q1uG34vEj6yLOmnhyhDhZdDOaxx7CGo9KxMrqvZ2t8EWZsHOWJ7mHc4Ch6I8DGMFGU3A uZhjhCy5+9h9EaZZ7kNBGx1p2AptGpSQjisCRVsNOWMcctfhxuh8C2bmJY1843nDlma2 3jCP7DDevKCelaOhdHWicE/yhqHw4JWDnZKzmp5+0R+gmrh2GmUGKISZop5e4fQeafQ9 a/4jJdLTa1gkZIVoQn+fODh2SQx0n781czcynRLhv+lX9O46hLwg0LJXmgEzk0n6xg13 hWdg== 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 43si335516plb.176.2018.12.12.17.43.27; Wed, 12 Dec 2018 17:43:43 -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 S1726457AbeLMBmg (ORCPT + 99 others); Wed, 12 Dec 2018 20:42:36 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:43612 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726380AbeLMBmg (ORCPT ); Wed, 12 Dec 2018 20:42:36 -0500 Received: from pps.filterd (m0098413.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id wBD1ctJn074904 for ; Wed, 12 Dec 2018 20:42:35 -0500 Received: from e34.co.us.ibm.com (e34.co.us.ibm.com [32.97.110.152]) by mx0b-001b2d01.pphosted.com with ESMTP id 2pbbt7d5k9-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 12 Dec 2018 20:42:34 -0500 Received: from localhost by e34.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 13 Dec 2018 01:42:34 -0000 Received: from b03cxnp07029.gho.boulder.ibm.com (9.17.130.16) by e34.co.us.ibm.com (192.168.1.134) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Thu, 13 Dec 2018 01:42:32 -0000 Received: from b03ledav004.gho.boulder.ibm.com (b03ledav004.gho.boulder.ibm.com [9.17.130.235]) by b03cxnp07029.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id wBD1gUCI20512930 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 13 Dec 2018 01:42:30 GMT Received: from b03ledav004.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 836817805E; Thu, 13 Dec 2018 01:42:30 +0000 (GMT) Received: from b03ledav004.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B82AA7805C; Thu, 13 Dec 2018 01:42:28 +0000 (GMT) Received: from morokweng.localdomain.com (unknown [9.80.227.60]) by b03ledav004.gho.boulder.ibm.com (Postfix) with ESMTP; Thu, 13 Dec 2018 01:42:28 +0000 (GMT) From: Thiago Jung Bauermann To: linux-security-module@vger.kernel.org Cc: James Morris , "Serge E. Hallyn" , Mimi Zohar , linux-kernel@vger.kernel.org, Thiago Jung Bauermann Subject: [PATCH] integrity: Remove references to module keyring Date: Wed, 12 Dec 2018 23:39:09 -0200 X-Mailer: git-send-email 2.17.2 X-TM-AS-GCONF: 00 x-cbid: 18121301-0016-0000-0000-00000963A1B5 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00010217; HX=3.00000242; KW=3.00000007; PH=3.00000004; SC=3.00000270; SDB=6.01130942; UDB=6.00587708; IPR=6.00911075; MB=3.00024674; MTD=3.00000008; XFM=3.00000015; UTC=2018-12-13 01:42:33 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18121301-0017-0000-0000-000041628DA9 Message-Id: <20181213013909.25737-1-bauerman@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-12-12_04:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 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-1812130013 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From what I can tell, it has never been used. Signed-off-by: Thiago Jung Bauermann --- 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;