From: Zihao Chang <changzihao1@huawei.com>
To: Gerd Hoffmann <kraxel@redhat.com>
Cc: oscar.zhangbo@huawei.com, qemu-devel@nongnu.org,
xiexiangyou@huawei.com, armbru@redhat.com
Subject: Re: [PATCH] vnc: add qmp to support change authz
Date: Fri, 8 Jan 2021 15:09:14 +0800 [thread overview]
Message-ID: <9b83b14a-61b1-d638-8924-af5ed32c55a3@huawei.com> (raw)
In-Reply-To: <20210107160410.bh27ibafc2szsayh@sirius.home.kraxel.org>
Hi,
On 2021/1/8 0:04, Gerd Hoffmann wrote:
> Hi,
>
>> This patch add a new qmp 'change-vnc-authz' to support change the
>> tls/sasl authz of vm. If index='', unset tlsauthzid/sasl.authzid
>> {
>> "execute":"change-vnc-authz",
>> "arguments":{
>> "index":"object-authz-id",
>> "type":"tls/sasl"
>> }
>> }
>
>> +##
>> +# @change-vnc-authz:
>> +#
>> +# Change the VNC server authz.
>> +#
>> +# @type: the new authz type to use with VNC authentication
>> +# @index: the new authz object index to use with VNC authentication
>> +#
>> +# Since: 5.2
>> +#
>> +##
>> +{ 'command': 'change-vnc-authz',
>> + 'data': { 'type' : 'str',
>> + 'index': 'str'},
>> + 'if': 'defined(CONFIG_VNC_SASL)' }
>
> type should be an enum I think.
It is a good idea to set type to enum, I will fix it in the next version.
> Also index should be an int (and possibly an optional argument so you
> can just not specify index to unset).
>
Index is the id of authz object(myauthz, user can set it as they wanted), may not use int.
-object authz-simple,id=myauthz,identity=test1
> take care,
> Gerd
>
> .
>
BTW, Daniel P . Berrangé suggests that all property set QMP commands should be integrated
as an general purpose "display_update" QMP command. That's really a good idea. This may
take longer time to design and code. Will we not think about adding new property set QMP
until the general purpose "display_update" QMP is ready?
https://lists.nongnu.org/archive/html/qemu-devel/2021-01/msg00941.html
Thanks,
Zihao
next prev parent reply other threads:[~2021-01-08 7:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-07 12:46 [PATCH] vnc: add qmp to support change authz Zihao Chang
2021-01-07 16:04 ` Gerd Hoffmann
2021-01-08 7:09 ` Zihao Chang [this message]
2021-01-11 8:20 ` Gerd Hoffmann
2021-01-07 16:18 ` Daniel P. Berrangé
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9b83b14a-61b1-d638-8924-af5ed32c55a3@huawei.com \
--to=changzihao1@huawei.com \
--cc=armbru@redhat.com \
--cc=kraxel@redhat.com \
--cc=oscar.zhangbo@huawei.com \
--cc=qemu-devel@nongnu.org \
--cc=xiexiangyou@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).