From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752701AbdKWLzw (ORCPT ); Thu, 23 Nov 2017 06:55:52 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:47470 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752500AbdKWLzv (ORCPT ); Thu, 23 Nov 2017 06:55:51 -0500 Subject: Re: [RFC PATCH v2] fw_lockdown: new micro LSM module to prevent loading unsigned firmware From: Mimi Zohar To: "Luis R. Rodriguez" Cc: Matthew Garrett , David Howells , One Thousand Gnomes , Marcus Meissner , Joey Lee , Jeff Mahoney , Jiri Kosina , Linus Torvalds , "AKASHI, Takahiro" , Johannes Berg , James Bottomley , Kees Cook , Stephen Boyd , Vikram Mulukutla , linux-kernel@vger.kernel.org, linux-security-module , James Morris Date: Thu, 23 Nov 2017 06:55:36 -0500 In-Reply-To: <20171122185837.GG729@wotan.suse.de> References: <1510573414.3404.109.camel@linux.vnet.ibm.com> <1511220268.4729.134.camel@linux.vnet.ibm.com> <20171122185837.GG729@wotan.suse.de> 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: 8bit X-TM-AS-GCONF: 00 x-cbid: 17112311-0008-0000-0000-000004AECF69 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17112311-0009-0000-0000-00001E419CA9 Message-Id: <1511438136.30063.52.camel@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-11-23_04:,, 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=1011 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1711230166 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2017-11-22 at 19:58 +0100, Luis R. Rodriguez wrote: > I've frankly have grown tired of pushing firmware signing just for the sake of > the fact that I needed it for cfg80211, but now that its out of the way and > we open coded it, its no longer a requirement on my part. As the keys CFG80211_REQUIRE_SIGNED_REGDB are built into the kernel image, they would be included in the kernel image signature. As I previously asked https://lkml.org/lkml/2017/11/15/679, how are the keys located in the CFG80211_EXTRA_REGDB_KEYDIR keyring trusted?  The keyring does not validate the certificate signatures, before loading the keys on the firmware keyring.  It explicitly bypasses the certificate signature validation. Mimi