From mboxrd@z Thu Jan 1 00:00:00 1970 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 3888FC433E0 for ; Fri, 29 May 2020 10:51:51 +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 0CF24207D4 for ; Fri, 29 May 2020 10:51:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0CF24207D4 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 1jecbq-0002Hc-GL; Fri, 29 May 2020 10:51:30 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1jecbo-0002HR-Va for xen-devel@lists.xenproject.org; Fri, 29 May 2020 10:51:29 +0000 X-Inumbo-ID: 58def19a-a19a-11ea-8993-bc764e2007e4 Received: from esa1.hc3370-68.iphmx.com (unknown [216.71.145.142]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 58def19a-a19a-11ea-8993-bc764e2007e4; Fri, 29 May 2020 10:51:28 +0000 (UTC) Authentication-Results: esa1.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none IronPort-SDR: jSbxCWYuGHUarZwQ0b9uNEHE68IVcRWKLLyJwsud8zSrwqa+EKO5VdEQXgRqA4/RSi/D7n9jEd EpSPaB4KT5dcKYx8DK31uUxZ8Ud/aKhhbdBx2s+utNY3ofmjr7jHRcjVfsv92epPc7xHe5JM57 jvARv9qaKa1G5jIOqbXsiAZxwDwMz3tb6MwHZqGy5BjKKWBfS04otayPDH13emOWfqathegUAP A/8RHVWf4qUTtp2H7MOeENNcuujg7hlapgqqUCk8lg/Ad8u8WHUWU5HM6YQj1itMlAxa/Vs3un 2eI= X-SBRS: 2.7 X-MesageID: 19041143 X-Ironport-Server: esa1.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="19041143" From: Ian Jackson MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-ID: <24272.59689.495738.841808@mariner.uk.xensource.com> Date: Fri, 29 May 2020 11:51:21 +0100 To: George Dunlap , Daniel De Graaf , Andrew Cooper , "Jan Beulich" , Julien Grall , "Stefano Stabellini" , Wei Liu , "xen-devel@lists.xenproject.org" , "cjwatson@debian.org" Subject: Re: Xen XSM/FLASK policy, grub defaults, etc. In-Reply-To: <24272.59646.746545.343358@mariner.uk.xensource.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> 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: , Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Ian Jackson writes ("Re: Xen XSM/FLASK policy, grub defaults, etc."): > 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. I mean most distros ship *Xen* configs even if they don't ship *Linux* ones. Ian.