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=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 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 A41BCC433DF for ; Fri, 29 May 2020 08:52:26 +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 768E420776 for ; Fri, 29 May 2020 08:52:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 768E420776 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.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 1jeakQ-0006oh-FU; Fri, 29 May 2020 08:52:14 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1jeakP-0006oc-Ja for xen-devel@lists.xenproject.org; Fri, 29 May 2020 08:52:13 +0000 X-Inumbo-ID: b023cb94-a189-11ea-9dbe-bc764e2007e4 Received: from mx2.suse.de (unknown [195.135.220.15]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id b023cb94-a189-11ea-9dbe-bc764e2007e4; Fri, 29 May 2020 08:52:13 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 8CCBAAAD0; Fri, 29 May 2020 08:52:11 +0000 (UTC) Subject: Re: Xen XSM/FLASK policy, grub defaults, etc. To: George Dunlap , Ian Jackson References: <24270.35349.838484.116865@mariner.uk.xensource.com> <0D83AAA6-A205-4256-8A38-CC8122AC063D@citrix.com> From: Jan Beulich Message-ID: <757d53a0-ec8f-62f1-ca20-72eaf9e1c84d@suse.com> Date: Fri, 29 May 2020 10:52:12 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <0D83AAA6-A205-4256-8A38-CC8122AC063D@citrix.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit 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 , "xen-devel@lists.xenproject.org" , Daniel De Graaf Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" On 27.05.2020 18:08, George Dunlap wrote: >> On May 27, 2020, at 4:41 PM, Ian Jackson wrote: >> 2. Xen should disable the XSM policy build when FLASK is disabled. >> This is unfortunately not so simple because the XSM policy build is a >> tools option and FLASK is a Xen option and the configuration systems >> are disjoint. But at the very least a default build, which has no XSM >> support, should not build an XSM policy file either. > > A simple thing to do here would be to have the flask policy controlled by a configure --flask option. If neither --flask nor --no-flask is specified, we could maybe have configure also check the contents of xen/.config to see if CONFIG_XSM_FLASK is enabled? But that's creating a chicken-and-egg problem: There's no ordering between the tools/ and xen/ builds. xen/ may not be built at all, and this is going to become increasingly likely once the xen/ part of the tree supports out-of-tree builds (at least I'll switch most of my build trees to that model as soon as it's available). Do we perhaps need to resort to a make command line option, usable at the top level as well as for major subtree builds, and being honored (as long as set either way, falling back to current behavior if unset) by both ./configure and the hypervisor's Kconfig? Jan