Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id F089CE77179 for ; Fri, 6 Dec 2024 13:05:46 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.850303.1264761 (Exim 4.92) (envelope-from ) id 1tJY1e-00072l-EC; Fri, 06 Dec 2024 13:05:42 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 850303.1264761; Fri, 06 Dec 2024 13:05:42 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tJY1e-00072e-Ao; Fri, 06 Dec 2024 13:05:42 +0000 Received: by outflank-mailman (input) for mailman id 850303; Fri, 06 Dec 2024 13:05:40 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tJY1c-00072T-TE for xen-devel@lists.xenproject.org; Fri, 06 Dec 2024 13:05:40 +0000 Received: from sender4-of-o51.zoho.com (sender4-of-o51.zoho.com [136.143.188.51]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id c90d9514-b3d2-11ef-99a3-01e77a169b0f; Fri, 06 Dec 2024 14:05:38 +0100 (CET) Received: by mx.zohomail.com with SMTPS id 1733490333542143.7719942594082; Fri, 6 Dec 2024 05:05:33 -0800 (PST) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: c90d9514-b3d2-11ef-99a3-01e77a169b0f ARC-Seal: i=1; a=rsa-sha256; t=1733490335; cv=none; d=zohomail.com; s=zohoarc; b=KoaIfVbklUbOk7hw23ynvy17UZqkFvpy3WM8NGPjJ2WePiCRnYXox89EJVgCLnp2pmYJV5LnZ8+NU1iCOBBTw/CMZVj0ffEWzDH+Pm9qdcM6rIZ92rK14PfHOD27pYLiUANxSXHcIRUjkVoYPcE6TK4bPyPv/68JneO4YafvR3I= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1733490335; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=fJGFNkT53OGu1EkwfQiiz2VIKpzaEEezUdD09cwRUbE=; b=XM376aTAvH3xh0YzZNLrstO3YWyQTBk5lTWcq3ocKUVLshXuhFL/EeUK8F9AHqnKvPovGq5IKnH4RggSVpfkO2Ozl5asecwLwRQedgGEsR0hCQI8E6wrCtR6EGXYikqjNKmGSF1vF4JBDzHqY7U/0wIcE4H4LKkiyhy8bTJ8JCg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=apertussolutions.com; spf=pass smtp.mailfrom=dpsmith@apertussolutions.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1733490335; s=zoho; d=apertussolutions.com; i=dpsmith@apertussolutions.com; h=Message-ID:Date:Date:MIME-Version:Subject:Subject:To:To:Cc:Cc:References:From:From:In-Reply-To:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To; bh=fJGFNkT53OGu1EkwfQiiz2VIKpzaEEezUdD09cwRUbE=; b=rxq72BsQECD9oNl3U0nmgPe9RwlmLE+1SENOW2Dz05pkvy7nlgjjAafDXvZdkG5N cv6FvsltgMg/GuQx7AtUqGkezeo8pizTSP/ZUMIWNlBjMZHQJ5sZwEli912E0RbwC+z jUd5oCC1KQbFbXtNWXBrc35gO+irM5ubfBwUh+Y8= Message-ID: Date: Fri, 6 Dec 2024 08:05:32 -0500 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 1/7] xen/xsm: make getdomaininfo xsm dummy checks more stringent To: Juergen Gross , xen-devel@lists.xenproject.org Cc: Andrew Cooper , Jan Beulich , Julien Grall , Stefano Stabellini References: <20241206130221.17773-1-jgross@suse.com> <20241206130221.17773-2-jgross@suse.com> Content-Language: en-US From: "Daniel P. Smith" In-Reply-To: <20241206130221.17773-2-jgross@suse.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ZohoMailClient: External On 12/6/24 08:02, Juergen Gross wrote: > Today the dummy XSM privilege checks for getdomaininfo are less > stringent than possible: they basically rely on the general > sysctl/domctl entry check to do all tests and then do the test with > the XSM_HOOK privilege, which is an "allow all" default. > > Instead of XSM_HOOK use XSM_XS_PRIV, which is the privilege really > wanted. Note that this test is still wider than the sysctl entry test, > but there is now easy way to make both domctl and sysctl happy at the > same time. > > Signed-off-by: Juergen Gross Acked-by: Daniel P. Smith