Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C7FF3C433E0 for ; Fri, 29 May 2020 14:48:11 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A5C6920721 for ; Fri, 29 May 2020 14:48:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A5C6920721 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=citrix.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1jegIX-00018y-Me; Fri, 29 May 2020 14:47:49 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1jegIW-00018t-E5 for xen-devel@lists.xenproject.org; Fri, 29 May 2020 14:47:48 +0000 X-Inumbo-ID: 5c5796ee-a1bb-11ea-81bc-bc764e2007e4 Received: from esa3.hc3370-68.iphmx.com (unknown [216.71.145.155]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 5c5796ee-a1bb-11ea-81bc-bc764e2007e4; Fri, 29 May 2020 14:47:47 +0000 (UTC) Authentication-Results: esa3.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none IronPort-SDR: viVHp8AO1Zt2nI/Z3zSZXcL6MVxc0T6JUCXptF7OtqoLsQkJZ3qaePBCEprcgJlukWsVP0bpJs 4/N7yWjTH4sTKS97w7D5necpdd1vKrP4Bhto2FDz7hrQ1586AQXI3gdwidl5ktX/BloSdotZ/V p/krZsxVtDKXdFUi9fxzfkQx033S8JE5MuHa8c+1m0d8QwlK6dKV9K+ymk2vTdPW3SA7oDXy/y B5tQOdR3AzIM7Y4wIgxAPJYuEWam0GJ+eWRBeuJX6gwGz/pkQPWNqZmxRqE89kX6pcOpxu1N+f wtM= X-SBRS: 2.7 X-MesageID: 18765118 X-Ironport-Server: esa3.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.73,448,1583211600"; d="scan'208";a="18765118" From: Ian Jackson MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-ID: <24273.8332.662607.125522@mariner.uk.xensource.com> Date: Fri, 29 May 2020 15:47:40 +0100 To: George Dunlap Subject: Re: Xen XSM/FLASK policy, grub defaults, etc. In-Reply-To: <96F32637-E410-4EC8-937A-CFC8BE724352@citrix.com> References: <24270.35349.838484.116865@mariner.uk.xensource.com> <0D83AAA6-A205-4256-8A38-CC8122AC063D@citrix.com> <24272.59646.746545.343358@mariner.uk.xensource.com> <4a8e7cf2-8f63-d4d2-e051-9484a5b8c8ed@suse.com> <96F32637-E410-4EC8-937A-CFC8BE724352@citrix.com> X-Mailer: VM 8.2.0b under 24.5.1 (i686-pc-linux-gnu) X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Stefano Stabellini , Julien Grall , "cjwatson@debian.org" , Wei Liu , Andrew Cooper , Jan Beulich , "xen-devel@lists.xenproject.org" , Daniel De Graaf Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" George Dunlap writes ("Re: Xen XSM/FLASK policy, grub defaults, etc."): > Which isn’t to say we shouldn’t do it; but it might be nice to also have an intermediate solution that works right now, even if it’s not optimal. I propose the following behaviour by updste-grub: 1. Look for an ELF note, TBD. If it's found, make XSM boot entries. (For now, skip this step, since the ELF note is not defined.) 2. Look for a .config alongside the Xen binary. Look for ^CONFIG_XSM_FLASK=y If the file is is not found, or no line matches, make no XSM boot entries. Ian.