From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752225AbcBHNzQ (ORCPT ); Mon, 8 Feb 2016 08:55:16 -0500 Received: from mx1.redhat.com ([209.132.183.28]:58975 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750781AbcBHNzN (ORCPT ); Mon, 8 Feb 2016 08:55:13 -0500 Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <1454938472.2648.173.camel@linux.vnet.ibm.com> References: <1454938472.2648.173.camel@linux.vnet.ibm.com> <1453318283.2858.27.camel@linux.vnet.ibm.com> <20160119113026.23238.4498.stgit@warthog.procyon.org.uk> <20160119113041.23238.44728.stgit@warthog.procyon.org.uk> <24522.1454513272@warthog.procyon.org.uk> To: Mimi Zohar Cc: dhowells@redhat.com, linux-security-module@vger.kernel.org, keyrings@vger.kernel.org, petkan@mip-labs.com, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH 02/20] KEYS: Add a system blacklist keyring [ver #2] MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <25432.1454939711.1@warthog.procyon.org.uk> Date: Mon, 08 Feb 2016 13:55:11 +0000 Message-ID: <25433.1454939711@warthog.procyon.org.uk> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Mimi Zohar wrote: > In addition, this patch set removes the IMA blacklist without any method for > adding blacklisted IMA keys to the system blacklist keyring. That's not true. Patch 18 enables userspace to add keys to the system blacklist keyring, provided those keys are validly signed: - KEY_USR_SEARCH, + KEY_USR_SEARCH | KEY_USR_WRITE, KEY_ALLOC_NOT_IN_QUOTA | KEY_FLAG_KEEP, - NULL, NULL); + restrict_link_by_system_trusted, NULL); After this commit, you can do everything with the system blacklist keyring that you can currently do with the IMA blacklist keyring. David