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.7 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 37E08C433DF for ; Fri, 29 May 2020 10:51:17 +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 14CE02075A for ; Fri, 29 May 2020 10:51:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 14CE02075A 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 1jecb8-0002EP-7M; Fri, 29 May 2020 10:50:46 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1jecb7-0002EK-7X for xen-devel@lists.xenproject.org; Fri, 29 May 2020 10:50:45 +0000 X-Inumbo-ID: 3ee3610e-a19a-11ea-9947-bc764e2007e4 Received: from esa2.hc3370-68.iphmx.com (unknown [216.71.145.153]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 3ee3610e-a19a-11ea-9947-bc764e2007e4; Fri, 29 May 2020 10:50:44 +0000 (UTC) Authentication-Results: esa2.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none IronPort-SDR: HxHYzqkqzCyc3Pq55Ti+XZrR9+GbZeJXYhymQnEOkahJPih8qOMYgV24Zky8gKZixg10E5Uyam RXcTpsg6ZBR7Hczh6V9V0CvAKxR70MiB5nGqZz/r0i/pUOXS17MaLvebthz+VzxYvI8YlVws+I LX0448fI06xqDckvMgtf6bx++Z8dmnYpT8IpjvLIKIeKM8HuwBmYGTI+pfKOz3RNlM31ZGa23F ie0NBu3GxSpTsyxukYF19HWQZgBT5gKj79f9w6Xc9tAaoYL4PqmoztunP540jnfenZQPDI9l4A Om0= X-SBRS: 2.7 X-MesageID: 18765620 X-Ironport-Server: esa2.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="18765620" From: Ian Jackson MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-ID: <24272.59646.746545.343358@mariner.uk.xensource.com> Date: Fri, 29 May 2020 11:50:38 +0100 To: George Dunlap Subject: Re: Xen XSM/FLASK policy, grub defaults, etc. In-Reply-To: <0D83AAA6-A205-4256-8A38-CC8122AC063D@citrix.com> References: <24270.35349.838484.116865@mariner.uk.xensource.com> <0D83AAA6-A205-4256-8A38-CC8122AC063D@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."): > > On May 27, 2020, at 4:41 PM, Ian Jackson wrote: > > 3. Failing that, Xen should provide some other mechanism which would > > enable something like update-grub to determine whether a particular > > hypervisor can sensibly be run with a policy file and flask=enforcing. > > So you want update-grub to check whether *the Xen binary it’s creating entries for* has FLASK enabled. We generally include the Xen config used to build the hypervisor — could we have it check for CONFIG_XSM_FLASK? That would be a possibility. Including kernel configs has gone out of fashion but I think most distros ship them. Are we confident that this config name will remain stable ? And I guess if the .config can't be found then the XSM boot entry should be included ? Ian.