Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753560AbcCHONv (ORCPT ); Tue, 8 Mar 2016 09:13:51 -0500 Received: from e23smtp02.au.ibm.com ([202.81.31.144]:35881 "EHLO e23smtp02.au.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751384AbcCHONm (ORCPT ); Tue, 8 Mar 2016 09:13:42 -0500 X-IBM-Helo: d23dlp03.au.ibm.com X-IBM-MailFrom: zohar@linux.vnet.ibm.com X-IBM-RcptTo: keyrings@vger.kernel.org;linux-kernel@vger.kernel.org;linux-security-module@vger.kernel.org Message-ID: <1457446364.5321.105.camel@linux.vnet.ibm.com> Subject: Re: [RFC PATCH 12/12] IMA: Use the the system trusted keyrings instead of .ima_mok [ver #2] From: Mimi Zohar To: David Howells Cc: linux-security-module@vger.kernel.org, keyrings@vger.kernel.org, linux-kernel@vger.kernel.org Date: Tue, 08 Mar 2016 09:12:44 -0500 In-Reply-To: <30481.1457442516@warthog.procyon.org.uk> References: <1457403993.5321.33.camel@linux.vnet.ibm.com> <20160304150022.17121.34501.stgit@warthog.procyon.org.uk> <20160304150149.17121.31855.stgit@warthog.procyon.org.uk> <30481.1457442516@warthog.procyon.org.uk> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.12.11 (3.12.11-1.fc21) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16030814-0005-0000-0000-000003848C77 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1269 Lines: 33 On Tue, 2016-03-08 at 13:08 +0000, David Howells wrote: > Mimi Zohar wrote: > > > Only certificates signed by a key on the system keyring were added to > > the IMA keyring, unless IMA_MOK_KEYRING was configured. Then, the > > certificate could be signed by a either a key on the system or ima_mok > > keyrings. To replicate this behavior, the default behavior should be to > > only permit certificates signed by a key on the builtin keyring, unless > > this new Kconfig is enabled. Only then, permit certificates signed by a > > key on either the builtin or secondary keyrings to be added to the IMA > > keyring. > > How about I change it to a choice-type item, with the following options: > > (1) No addition. > > (2) Addition restricted by built-in keyring. > > (3) Addition restricted by secondary keyring + built-in keyring. > > where the second and third options then depend on the appropriate keyrings > being enabled. So option 1 is where IMA-appraisal is configured, but neither the builtin nor the secondary keys are enabled. This would be the equivalent of having a set of "builtin" keys loaded directly onto the IMA keyring, without the ability of adding additional keys. Ok, I'm fine this solution. thanks, Mimi