Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp106033imm; Thu, 10 May 2018 16:27:48 -0700 (PDT) X-Google-Smtp-Source: AB8JxZo5yCfa7WbgM+Cub1RpmApBBNVB3sfpnhGUm8J776C7HKTgkY+wAJUTiplGyb1uwuLrx1VL X-Received: by 2002:a63:7c55:: with SMTP id l21-v6mr2570743pgn.148.1525994867948; Thu, 10 May 2018 16:27:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525994867; cv=none; d=google.com; s=arc-20160816; b=gfkSNoC9fb1z7jtDbD4xPdyRWo0+IdTQC97fmKPyT9KeXRHJt+0Is6yRf0/5O0iW2u G+4BmZpdihr3Zop+/Y6d8/PaM0aa2fY3NuCNXTTFP+yJNJhewCzT3K0c7PyfB/glEu/O 880yVNGydgoOYddykZ7GdF4dauVRMMkBsvoQLraI9ZC75DTs5pWQW8BWjmzO19rV5k41 bOAFTG1IIfyN0JTAhLoKUmeJ8oPseeSqsk5JRuYBRipYj5rd1lkl7ZikZuYKLkITuoVx OhHd9gtVl3ZbkX1u+fpUfbZgpta/o4IhnDGlk61sXqeGVLYmCDnpmn5+X11zE6RMyQz2 UA1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=HMSszjfe7ACwfGYjwjw/dzTs3AbX0oE2qywohG6dX/s=; b=V232cxoT6nbYRWq+X3ucnND28mLgMdrJnZr6N0b+cYlnffXmQpmTijbVtM+rOBf47n hBbqZLnV/HHPpCUlAoGUX+8pyeuc2wA2z2QKHxHzrPytTRmXFbKDXqzul8G3Wozcy5yu nT1LEZAttk/+868HhCSgYTIVtVExTTl9W8i9eqIWdgSOnKoL5moUkonA9vTWjGZo77Bu K/zb797/iEOWqHzDS+nPZSMbQDh763K5LPBmInf1GohPEvRxD2B1/SXpuXDdkcEDzmX1 pzLrQIie/Tws8eVDEA7y93dgOPd7HUyF/EULkSd4N1G4iE3qqfxt2CP6RuSYZ4uvvN07 N9DA== 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m1-v6si1764423pfe.79.2018.05.10.16.27.32; Thu, 10 May 2018 16:27:47 -0700 (PDT) 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751904AbeEJX0q (ORCPT + 99 others); Thu, 10 May 2018 19:26:46 -0400 Received: from mx2.suse.de ([195.135.220.15]:55582 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751438AbeEJX0n (ORCPT ); Thu, 10 May 2018 19:26:43 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id D44B5AF63; Thu, 10 May 2018 23:26:41 +0000 (UTC) Date: Thu, 10 May 2018 23:26:39 +0000 From: "Luis R. Rodriguez" To: Mimi Zohar Cc: "Luis R. Rodriguez" , Matthew Garrett , Peter Jones , "AKASHI, Takahiro" , David Howells , linux-wireless , Kalle Valo , Seth Forshee , Johannes Berg , linux-integrity@vger.kernel.org, Hans de Goede , Ard Biesheuvel , linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, Kees Cook , Greg Kroah-Hartman , Andres Rodriguez , Linus Torvalds , Andy Lutomirski , Casey Schaufler Subject: Re: [PATCH 3/6] firmware: differentiate between signed regulatory.db and other firmware Message-ID: <20180510232639.GF27853@wotan.suse.de> References: <20180504000743.GR27853@wotan.suse.de> <1525393466.3539.133.camel@linux.vnet.ibm.com> <20180508173404.GG27853@wotan.suse.de> <1525865428.3551.175.camel@linux.vnet.ibm.com> <20180509191508.GR27853@wotan.suse.de> <1525895838.3551.247.camel@linux.vnet.ibm.com> <20180509212212.GX27853@wotan.suse.de> <1525903617.3551.281.camel@linux.vnet.ibm.com> <20180509234814.GY27853@wotan.suse.de> <1525917658.3551.322.camel@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1525917658.3551.322.camel@linux.vnet.ibm.com> User-Agent: Mutt/1.6.0 (2016-04-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 09, 2018 at 10:00:58PM -0400, Mimi Zohar wrote: > On Wed, 2018-05-09 at 23:48 +0000, Luis R. Rodriguez wrote: > > On Wed, May 09, 2018 at 06:06:57PM -0400, Mimi Zohar wrote: > > > > > > Yes, writing regdb as a micro/mini LSM sounds reasonable. ?The LSM > > > > > would differentiate between other firmware and the regulatory.db based > > > > > on the firmware's pathname. > > > > > > > > If that is the only way then it would be silly to do the mini LSM as all > > > > calls would have to have the check. A special LSM hook for just the > > > > regulatory db also doesn't make much sense. > > > > > > All calls to request_firmware() are already going through this LSM > > > hook. ?I should have said, it would be based on both READING_FIRMWARE > > > and the firmware's pathname. > > > > Yes, but it would still be a strcmp() computation added for all > > READING_FIRMWARE. In that sense, the current arrangement is only open coding the > > signature verification for the regulatory.db file. One way to avoid this would > > be to add an LSM specific to the regulatory db > > Casey already commented on this suggestion. Sorry but I must have missed this, can you send me the email or URL where he did that? I never got a copy of that email I think. Luis