Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1122715imm; Fri, 1 Jun 2018 16:05:57 -0700 (PDT) X-Google-Smtp-Source: ADUXVKI2UdcA9/YCARK3Pm5yo6JqfjIUb8MhFw5VX3wRTsLYLhnk0YeUOgAC4td6s1MwtXFN5xv0 X-Received: by 2002:a62:3994:: with SMTP id u20-v6mr12620504pfj.95.1527894357390; Fri, 01 Jun 2018 16:05:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527894357; cv=none; d=google.com; s=arc-20160816; b=0OiMeeOB+9AnmkTbXqJiNjtxJgvbhbS8j/L6k1qrRpcPp15Zuq1GPB3lNMJP/McrRP DJ/KevHH02Cmo5NE1wcjQW63jRzAVemGmkKHBLorh5K7w/nawTT1wMjpcpTijpqrHdFD vBkK0MmxOelj5XDQcuUyuUzn+Ea1SE7BfsWREpuClMW3JdM4hozY6735zF/jon8+onBO coPaeszA5FNQ0qRDlktIuPQ5XrsTT203cQxmo3GFgBg5D0I8eqMJ2vsj8c3y6wXeBm23 jfrt4wM1MlI5MRc5/I1wwX6bSw9RySHzDn4Wd4oA7cGyl17VhVlTFM4MldhlSuBigcxo PlUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :mime-version:references:in-reply-to:date:cc:to:from:subject :arc-authentication-results; bh=qje3sDH7Jar99YMeUV+BcsUrO/KfKbepY0WV4avxB1Y=; b=IPfQOoGSMuR4XK8U8ZNrJuxYlFzcphmACRUOWK3mRXk0h8xpWWa+hvoz2xOEIUusqg OtDK3kBw9Q71g/dBBHwuovrQy8igBtUtvzSpc2gdwkEzG1vSMfl8rxfPnj1NSLd76Gck ucTMZjVYRcM8j73Mqc3SRdhG2LC/gOpnh6mfNbOM3JuW1H+m/nSewLuGr/+KLubycPlj F91Bi3avS3ybZStQFKsvu0anJSHNeuoOBIV4zp1pLD/S8iNnyqTnCyfbJ/eVbtPsuxz9 bkRinRY8HoeYBw9ilS4FMxeeQ/tCkzbyY694ghQaSW1Wjl6MFUZkeOpvRWbHkS7cCDlw 4Ttw== 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 n15-v6si2061336pgf.45.2018.06.01.16.05.42; Fri, 01 Jun 2018 16:05:57 -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=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750987AbeFAXFJ (ORCPT + 99 others); Fri, 1 Jun 2018 19:05:09 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:41948 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750732AbeFAXFF (ORCPT ); Fri, 1 Jun 2018 19:05:05 -0400 Received: from pps.filterd (m0098414.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w51N3rtT039895 for ; Fri, 1 Jun 2018 19:05:04 -0400 Received: from e06smtp03.uk.ibm.com (e06smtp03.uk.ibm.com [195.75.94.99]) by mx0b-001b2d01.pphosted.com with ESMTP id 2jbbqh7x5c-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 01 Jun 2018 19:05:04 -0400 Received: from localhost by e06smtp03.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Sat, 2 Jun 2018 00:05:02 +0100 Received: from b06cxnps4074.portsmouth.uk.ibm.com (9.149.109.196) by e06smtp03.uk.ibm.com (192.168.101.133) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Sat, 2 Jun 2018 00:04:58 +0100 Received: from d06av24.portsmouth.uk.ibm.com (mk.ibm.com [9.149.105.60]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w51N4wXw25821330 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 1 Jun 2018 23:04:58 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D96D84203F; Fri, 1 Jun 2018 23:55:25 +0100 (BST) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 3D9A442042; Fri, 1 Jun 2018 23:55:24 +0100 (BST) Received: from localhost.localdomain (unknown [9.80.110.11]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTP; Fri, 1 Jun 2018 23:55:24 +0100 (BST) Subject: Re: [PATCH v4 5/8] ima: based on policy require signed firmware (sysfs fallback) From: Mimi Zohar To: "Luis R. Rodriguez" Cc: linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, David Howells , Eric Biederman , kexec@lists.infradead.org, Andres Rodriguez , Greg Kroah-Hartman , Ard Biesheuvel , Matthew Garrett Date: Fri, 01 Jun 2018 19:04:45 -0400 In-Reply-To: <20180601224617.GU4511@wotan.suse.de> References: <1527616920-5415-1-git-send-email-zohar@linux.vnet.ibm.com> <1527616920-5415-6-git-send-email-zohar@linux.vnet.ibm.com> <20180601182107.GO4511@wotan.suse.de> <1527892795.13403.26.camel@linux.vnet.ibm.com> <20180601224617.GU4511@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: 18060123-0012-0000-0000-00000279E326 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18060123-0013-0000-0000-000020AA9858 Message-Id: <1527894285.13403.43.camel@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-06-01_13:,, 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=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1805220000 definitions=main-1806010261 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 2018-06-02 at 00:46 +0200, Luis R. Rodriguez wrote: > On Fri, Jun 01, 2018 at 06:39:55PM -0400, Mimi Zohar wrote: > > On Fri, 2018-06-01 at 20:21 +0200, Luis R. Rodriguez wrote: > > > On Tue, May 29, 2018 at 02:01:57PM -0400, Mimi Zohar wrote: > > > > Luis, is the security_kernel_post_read_file LSM hook in > > > > firmware_loading_store() still needed after this patch? Should it be > > > > calling security_kernel_load_data() instead? > > > > > > That's up to Kees to decide as he added that hook, and knows > > > what LSMs may be doing with it. From my perspective it is confusing > > > to have that hook there so I think it could be removed now. > > > > > > Kees? > > > > Commit 6593d92 ("firmware_class: perform new LSM checks") references > > two methods of loading firmware -  filesystem-found firmware and > > demand-loaded blobs.  I assume this call in firmware_loading_store() > > is the demand-loaded blobs.  Does that method still exist?  Is it > > still being used? > > Yeah its the stupid sysfs interface. So likely loadpin needs porting > as you IMA as you did. In this case, it doesn't look like the call to security_kernel_post_read_file() should be changed, which means that all the LSMs and IMA still need to support !file.   Mimi