Received: by 10.192.165.148 with SMTP id m20csp114685imm; Thu, 3 May 2018 16:04:43 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqKOiHwSHFzj4I2ESEWgYGGcZdx1KDMOJPCTz6gYqp6+7olagT0CiC3+YCEvRT2TKV0tPzl X-Received: by 2002:a17:902:780d:: with SMTP id p13-v6mr25718457pll.281.1525388683006; Thu, 03 May 2018 16:04:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525388682; cv=none; d=google.com; s=arc-20160816; b=goQC3ySgeBgSI3rCdlWPcikRRDJjnk6WMw564YsBu6S3A+zq+H9ZZ3AvRN92uSZQ9p vRHeU+0fxaUWJO5l3Pa6kDYBEUcjWmQir5FLzkI6zAYY+2ZX5mjy1ItRK7NrDH2ZH2nv ZeckkqJFOi6JDqOdlZlXJMY+VvgxnFOcNe1ot6+vHgVZiL4L8Yx7/cq6qSOTa/nFoSRq UpoINPT0DR33JALVB7SpfUDKHukV65nPT9VYx3v+m5tAAPUtRr1DpS8uED1eH/LjifOm S1FR1O6aGJhb1UZs/gYMHWkQ9Qwcm/T60DNmy/lmvhIP58TzYM5zrWMuYEOMLroVbL6P ro/Q== 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=UZytqJS86/Hq21uBL89VA+cG7ZiXXnFoOkEdhDT23qM=; b=zLSydreCcVPQm7/iu+IG7QKiWwxHLehgETEmjuXX0zYfpoOiMSviz6j4iBD+FlSXRN u6uAX7deFJ2F9Qy9PzaSrz4ioseXTkqbS/N07AIHf2vBxx31C3N3n51e5Odo39z1UfCc /29v1C6oW1vshCS1I0yvHxdAMdrHjX/fm9R6mqG7OTmM9FZZfr9oCtXywvCdAufoY0CG z9ry5jqVXFVwboy8rXviPS89VoaaLx+Ed8QGuZFOcXDv0QBjicnNkygmi184ljfAS5XP CPuWpZazMIFS8MevUT36YKjEmW3FUZYKmTC5ABcuSFZnAVdPG4d539APMKol4uTcQlWC /J5A== 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 b4-v6si9238770plr.582.2018.05.03.16.04.28; Thu, 03 May 2018 16:04:42 -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 S1751360AbeECXC6 (ORCPT + 99 others); Thu, 3 May 2018 19:02:58 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:48970 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751128AbeECXC4 (ORCPT ); Thu, 3 May 2018 19:02:56 -0400 Received: from pps.filterd (m0098417.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w43MxLGv069614 for ; Thu, 3 May 2018 19:02:56 -0400 Received: from e06smtp14.uk.ibm.com (e06smtp14.uk.ibm.com [195.75.94.110]) by mx0a-001b2d01.pphosted.com with ESMTP id 2hr81hggav-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 03 May 2018 19:02:55 -0400 Received: from localhost by e06smtp14.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 4 May 2018 00:02:53 +0100 Received: from b06cxnps4075.portsmouth.uk.ibm.com (9.149.109.197) by e06smtp14.uk.ibm.com (192.168.101.144) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Fri, 4 May 2018 00:02:47 +0100 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w43N2km97405860; Thu, 3 May 2018 23:02:46 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id CB4CF4C046; Thu, 3 May 2018 23:54:54 +0100 (BST) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id AC0234C04E; Thu, 3 May 2018 23:54:51 +0100 (BST) Received: from localhost.localdomain (unknown [9.80.107.24]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTP; Thu, 3 May 2018 23:54:51 +0100 (BST) Subject: Re: [PATCH v5 2/5] efi: Add embedded peripheral firmware support From: Mimi Zohar To: "Luis R. Rodriguez" Cc: Hans de Goede , Ard Biesheuvel , Greg Kroah-Hartman , Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" , Peter Jones , Dave Olsthoorn , Will Deacon , Andy Lutomirski , Matt Fleming , David Howells , Josh Triplett , dmitry.torokhov@gmail.com, mfuzzey@parkeon.com, Kalle Valo , Arend Van Spriel , Linus Torvalds , nbroeking@me.com, bjorn.andersson@linaro.org, Torsten Duwe , Kees Cook , x86@kernel.org, linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-security-module Date: Thu, 03 May 2018 19:02:43 -0400 In-Reply-To: <20180503222329.GD27853@wotan.suse.de> References: <20180429093558.5411-1-hdegoede@redhat.com> <20180429093558.5411-3-hdegoede@redhat.com> <1525185374.5669.49.camel@linux.vnet.ibm.com> <1525202847.5669.64.camel@linux.vnet.ibm.com> <20180503222329.GD27853@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: 18050323-0044-0000-0000-0000054EBC2C X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18050323-0045-0000-0000-0000288FE53B Message-Id: <1525388563.3539.97.camel@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-05-03_10:,, 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 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1805030200 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2018-05-03 at 22:23 +0000, Luis R. Rodriguez wrote: > On Tue, May 01, 2018 at 03:27:27PM -0400, Mimi Zohar wrote: > > On Tue, 2018-05-01 at 21:11 +0200, Hans de Goede wrote: > > > Only the pre hook? I believe the post-hook should still be called too, > > > right? So that we've hashes of all loaded firmwares in the IMA core. > > > > Good catch!  Right, if IMA-measurement is enabled, then we would want > > to add the measurement. > > Mimi, just a heads up, we only use the post hook for the syfs fallback > mechanism, ie, we don't even use the post hook for direct fs lookup. > Do we want that there? The direct fs lookup calls kernel_read_file_from_path(), which calls the security_kernel_read_file() and security_kernel_post_read_file() hooks.  So there is no need to add a direct call to either of these security calls. Mimi