From nobody Sat Apr 20 03:42:19 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1617014413; cv=none; d=zohomail.com; s=zohoarc; b=R1jpFypGcHapMSAOJBVS0JWI0LrpAJEYoJeU0cAdeBiOaufwkvPiz7/zQgn/tq5vaM81aQZ1SWs7kq+PVHeln20mw5DrHk2n8s5jK7sB8B3+++WZLAFeqh5n7gkWO91OiX9XaN3eQsK5RqVYB1g/zkTTOcBhfusexasKJNZT6yA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1617014413; h=Content-Type:Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=ETSPAbr0DD8FMJQ3/R+J1zkFeu12oAE38xUIAH4o9xM=; b=oBKQN50FUcpda4HlSz9gnUdMnDjrI2T+7pRujtXV7GOYyyQclnTw5Uo0lgo99u+S0cHjaPo1ItgOIphFMrgfVOqe35DIsil5Kb7/58XOhhD/x1IGZcBYmArEokNPW8vF7uskrMSeoRgqSTGkVuax1ITPS686w6+4HiTYzOfWeNA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1617014413701665.6926406659259; Mon, 29 Mar 2021 03:40:13 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-198-KEBXGqA6OsiWw2NGIzi5Fw-1; Mon, 29 Mar 2021 06:40:10 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id BAED88189C7; Mon, 29 Mar 2021 10:40:03 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id AD53E5D768; Mon, 29 Mar 2021 10:40:00 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 7499D4BB7C; Mon, 29 Mar 2021 10:39:46 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 12TAZXlO020964 for ; Mon, 29 Mar 2021 06:35:33 -0400 Received: by smtp.corp.redhat.com (Postfix) id 36AAA5D769; Mon, 29 Mar 2021 10:35:33 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-114-228.ams2.redhat.com [10.36.114.228]) by smtp.corp.redhat.com (Postfix) with ESMTP id BD101772FA; Mon, 29 Mar 2021 10:35:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1617014412; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=ETSPAbr0DD8FMJQ3/R+J1zkFeu12oAE38xUIAH4o9xM=; b=ILQJ9wnWE5NbgcY4WJuGl0XzvNlHEhL17H5hhZvLC9vwLXf0GyBrPZBP4eTb4qUjA+kzJG l8mbM4vz4gRqM8OL4S4zAa9y/519uPiGeaNbRvbhRvYJSgbSRnO09Hken/+xPf2TqNl423 OADZ4bN0NUTQYEr+dg9+8Qx6r6E7j88= X-MC-Unique: KEBXGqA6OsiWw2NGIzi5Fw-1 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Subject: [libvirt PATCH] remote: don't allow dirty rate API with read permission Date: Mon, 29 Mar 2021 11:35:27 +0100 Message-Id: <20210329103527.19727-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-loop: libvir-list@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) This API interacts with the hypervisor and makes changes to its behaviour, so must be protected by the write permission. Signed-off-by: Daniel P. Berrang=C3=A9 --- src/remote/remote_protocol.x | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/remote/remote_protocol.x b/src/remote/remote_protocol.x index 7fdc65f029..743c21b316 100644 --- a/src/remote/remote_protocol.x +++ b/src/remote/remote_protocol.x @@ -6743,7 +6743,7 @@ enum remote_procedure { =20 /** * @generate: both - * @acl: domain:read + * @acl: domain:write */ REMOTE_PROC_DOMAIN_START_DIRTY_RATE_CALC =3D 427 }; --=20 2.30.2