From nobody Tue Feb 10 01:15:11 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) client-ip=63.128.21.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1610613532; cv=none; d=zohomail.com; s=zohoarc; b=mGZer4RjJ0ZeyNXPiF5lzRm9x4UQsFnapNwMwv1ISuOw/wXJVcnS6cII+aB1uxvLjclVE8YwS9UFm4gTz2UXc8PVNS2QI/Cw6bB7LjRFx2IPcf7O33zlEdUWSFuEjEQqzQ2edtZjPl3F1FnyeZz9NGr5NtpnbZ+xgcbr/zjw9JA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1610613532; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=ILiE4qXu0pIbDA7/H5XKR5tBKJiRsu0AP5K7CYKjO7A=; b=DqzX1K4TKlu1NeCMnEe12Stm6ERZco4dBlwrcB6EaCSV42gPsRxYjPVcTHCi3/5a4eBKJ+GwTfV5heXzcQpvR03HkI3S5n7v8aiYcamOwZx5agp4XjJeWGEV54hLAew5dUPwsmGgvZG7djEQ1/D40YMLFLa8yhChlrxtG/AL4iM= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by mx.zohomail.com with SMTPS id 1610613532632843.7733760571223; Thu, 14 Jan 2021 00:38:52 -0800 (PST) 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-524-xqYLcI-6MCah9iBkMVLcoQ-1; Thu, 14 Jan 2021 03:38:48 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 7F89BBBF1C; Thu, 14 Jan 2021 08:38:38 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5C3495C67A; Thu, 14 Jan 2021 08:38:38 +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 9BB491809C9F; Thu, 14 Jan 2021 08:38:36 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 10E8cZQP022233 for ; Thu, 14 Jan 2021 03:38:35 -0500 Received: by smtp.corp.redhat.com (Postfix) id 259BC101F0B9; Thu, 14 Jan 2021 08:38:35 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast03.extmail.prod.ext.rdu2.redhat.com [10.11.55.19]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 21CB61018CBD for ; Thu, 14 Jan 2021 08:38:35 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 141F4811E78 for ; Thu, 14 Jan 2021 08:38:35 +0000 (UTC) Received: from szxga04-in.huawei.com (szxga04-in.huawei.com [45.249.212.190]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-568-tv6l7hYCMbmEZyl_NNVt5A-1; Thu, 14 Jan 2021 03:38:30 -0500 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4DGccs2w2Yz15sld for ; Thu, 14 Jan 2021 16:17:49 +0800 (CST) Received: from DESKTOP-F1615D3.china.huawei.com (10.174.186.85) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.498.0; Thu, 14 Jan 2021 16:18:40 +0800 X-MC-Unique: xqYLcI-6MCah9iBkMVLcoQ-1 X-MC-Unique: tv6l7hYCMbmEZyl_NNVt5A-1 From: Zihao Chang To: Subject: [PATCH 3/6] authz: support formating authz to xml Date: Thu, 14 Jan 2021 16:18:18 +0800 Message-ID: <20210114081821.146-4-changzihao1@huawei.com> In-Reply-To: <20210114081821.146-1-changzihao1@huawei.com> References: <20210114081821.146-1-changzihao1@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.174.186.85] X-CFilter-Loop: Reflected X-Mimecast-Impersonation-Protect: Policy=CLT - Impersonation Protection Definition; Similar Internal Domain=false; Similar Monitored External Domain=false; Custom External Domain=false; Mimecast External Domain=false; Newly Observed Domain=false; Internal User Name=false; Custom Display Name List=false; Reply-to Address Mismatch=false; Targeted Threat Dictionary=false; Mimecast Threat Dictionary=false; Custom Threat Dictionary=false X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-MIME-Autoconverted: from quoted-printable to 8bit by lists01.pubmisc.prod.ext.phx2.redhat.com id 10E8cZQP022233 X-loop: libvir-list@redhat.com Cc: oscar.zhangbo@huawei.com, changzihao1@huawei.com, xiexiangyou@huawei.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.16 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-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" support formating vmdef's authz devices to xml Signed-off-by: Zihao Chang --- src/conf/domain_conf.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index d547a93e16cd..540f1706fd23 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -28950,6 +28950,12 @@ virDomainDefFormatInternalSetRootName(virDomainDef= Ptr def, return -1; } =20 + for (n =3D 0; n < def->nauthzs; n++) { + if (virDomainAuthzDefFormat(buf, def->authzs[n]) < 0) + return -1; + + } + for (n =3D 0; n < def->ngraphics; n++) { if (virDomainGraphicsDefFormat(buf, def->graphics[n], flags) < 0) return -1; --=20 2.28.0