Received: from list by lists.gnu.org with archive (Exim 4.71) id 1gUtu9-0007Gq-3m for mharc-grub-devel@gnu.org; Thu, 06 Dec 2018 08:41:25 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45923) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gUtu7-0007Fb-JV for grub-devel@gnu.org; Thu, 06 Dec 2018 08:41:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gUtu4-0002UQ-4L for grub-devel@gnu.org; Thu, 06 Dec 2018 08:41:23 -0500 Received: from userp2130.oracle.com ([156.151.31.86]:36678) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gUtu1-0002Mb-Tt for grub-devel@gnu.org; Thu, 06 Dec 2018 08:41:18 -0500 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id wB6DceiB185567; Thu, 6 Dec 2018 13:41:11 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references; s=corp-2018-07-02; bh=RRaqn6D1st4jn8KYht4sqO254ZNNNmGLQ9yZzsY3aUQ=; b=iokIRxpZOOeVgwy3Mpx159LjUB7doGLzj1nEjumnjzVxlRceWG2e2N5kDhEvEuQyad23 ZHbVuIqRwNl2jV13lmR1NWOPWcM0PsfmCNRcN4r9dyAten4f4s/rJAC92pXOEXmF5rBb C2IlnZ8bBM5geqI7hRfsbntG378T4nT/1YKNhXBroe/kXae5LmnWCRGOM89d/iExJB8E BzOaKEeKDpbteD/Y6DiA5Q0oWSxH69yDWLga/WiCC7LTtsHpf32O6eIUGsnymymwClZg tMPrlR2OcAzRiC7jsIv2xFIRIsOIa9xEybWjdRejs4vLBLTThlOhTetgXo/CzIFBI40F 8g== Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp2130.oracle.com with ESMTP id 2p3hqu89ka-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 06 Dec 2018 13:41:11 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id wB6Df5qa005954 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 6 Dec 2018 13:41:06 GMT Received: from abhmp0012.oracle.com (abhmp0012.oracle.com [141.146.116.18]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id wB6Df58T015736; Thu, 6 Dec 2018 13:41:05 GMT Received: from tomti.i.net-space.pl (/10.175.168.4) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 06 Dec 2018 05:41:04 -0800 From: Daniel Kiper To: grub-devel@gnu.org, xen-devel@lists.xenproject.org Cc: farrah.chen@intel.com, fu.wei@linaro.org, julien.grall@arm.com, lee.jones@linaro.org, leif.lindholm@linaro.org, phcoder@gmail.com, ross.philipson@oracle.com, xudong.hao@intel.com Subject: [GRUB PATCH 2/2] verifiers: ARM Xen fallout cleanup Date: Thu, 6 Dec 2018 14:40:33 +0100 Message-Id: <20181206134033.19884-3-daniel.kiper@oracle.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20181206134033.19884-1-daniel.kiper@oracle.com> References: <20181206134033.19884-1-daniel.kiper@oracle.com> X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9098 signatures=668679 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=890 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1812060119 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] [fuzzy] X-Received-From: 156.151.31.86 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Dec 2018 13:41:24 -0000 ARM Xen fallout cleanup after commit ca0a4f689 (verifiers: File type for fine-grained signature-verification controlling). Signed-off-by: Daniel Kiper --- grub-core/loader/arm64/xen_boot.c | 8 ++++---- include/grub/file.h | 5 +++++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/grub-core/loader/arm64/xen_boot.c b/grub-core/loader/arm64/xen_boot.c index 33a855df4..a742868a4 100644 --- a/grub-core/loader/arm64/xen_boot.c +++ b/grub-core/loader/arm64/xen_boot.c @@ -429,9 +429,9 @@ grub_cmd_xen_module (grub_command_t cmd __attribute__((unused)), grub_dprintf ("xen_loader", "Init module and node info\n"); - if (nounzip) - grub_file_filter_disable_compression (); - file = grub_file_open (argv[0]); + file = grub_file_open (argv[0], GRUB_FILE_TYPE_XEN_MODULE + | (nounzip ? GRUB_FILE_TYPE_NO_DECOMPRESS + : GRUB_FILE_TYPE_NONE)); if (!file) goto fail; @@ -463,7 +463,7 @@ grub_cmd_xen_hypervisor (grub_command_t cmd __attribute__ ((unused)), goto fail; } - file = grub_file_open (argv[0]); + file = grub_file_open (argv[0], GRUB_FILE_TYPE_XEN_HYPERVISOR); if (!file) goto fail; diff --git a/include/grub/file.h b/include/grub/file.h index 9aae46355..cbbd29465 100644 --- a/include/grub/file.h +++ b/include/grub/file.h @@ -42,6 +42,11 @@ enum grub_file_type /* Multiboot module. */ GRUB_FILE_TYPE_MULTIBOOT_MODULE, + /* Xen hypervisor - used on ARM only. */ + GRUB_FILE_TYPE_XEN_HYPERVISOR, + /* Xen module - used on ARM only. */ + GRUB_FILE_TYPE_XEN_MODULE, + GRUB_FILE_TYPE_BSD_KERNEL, GRUB_FILE_TYPE_FREEBSD_ENV, GRUB_FILE_TYPE_FREEBSD_MODULE, -- 2.11.0