mirror of https://gitee.com/openkylin/qemu.git
ui: remove deprecated 'password' option for SPICE
This has been replaced by the 'password-secret' option, which references a 'secret' object instance. Reviewed-by: Fabiano Rosas <farosas@suse.de> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
610783cb6e
commit
36debafddd
|
@ -66,14 +66,6 @@ and will cause a warning.
|
||||||
The replacement for the ``nodelay`` short-form boolean option is ``nodelay=on``
|
The replacement for the ``nodelay`` short-form boolean option is ``nodelay=on``
|
||||||
rather than ``delay=off``.
|
rather than ``delay=off``.
|
||||||
|
|
||||||
``-spice password=string`` (since 6.0)
|
|
||||||
''''''''''''''''''''''''''''''''''''''
|
|
||||||
|
|
||||||
This option is insecure because the SPICE password remains visible in
|
|
||||||
the process listing. This is replaced by the new ``password-secret``
|
|
||||||
option which lets the password be securely provided on the command
|
|
||||||
line using a ``secret`` object instance.
|
|
||||||
|
|
||||||
``-smp`` ("parameter=0" SMP configurations) (since 6.2)
|
``-smp`` ("parameter=0" SMP configurations) (since 6.2)
|
||||||
'''''''''''''''''''''''''''''''''''''''''''''''''''''''
|
'''''''''''''''''''''''''''''''''''''''''''''''''''''''
|
||||||
|
|
||||||
|
|
|
@ -428,6 +428,13 @@ respectively. The actual backend names should be used instead.
|
||||||
Use ``-drive if=pflash`` to configure the OTP device of the sifive_u
|
Use ``-drive if=pflash`` to configure the OTP device of the sifive_u
|
||||||
RISC-V machine instead.
|
RISC-V machine instead.
|
||||||
|
|
||||||
|
``-spice password=string`` (removed in 8.0)
|
||||||
|
'''''''''''''''''''''''''''''''''''''''''''
|
||||||
|
|
||||||
|
This option was insecure because the SPICE password remained visible in
|
||||||
|
the process listing. This was replaced by the new ``password-secret``
|
||||||
|
option which lets the password be securely provided on the command
|
||||||
|
line using a ``secret`` object instance.
|
||||||
|
|
||||||
QEMU Machine Protocol (QMP) commands
|
QEMU Machine Protocol (QMP) commands
|
||||||
------------------------------------
|
------------------------------------
|
||||||
|
|
|
@ -2135,7 +2135,7 @@ DEF("spice", HAS_ARG, QEMU_OPTION_spice,
|
||||||
" [,tls-channel=[main|display|cursor|inputs|record|playback]]\n"
|
" [,tls-channel=[main|display|cursor|inputs|record|playback]]\n"
|
||||||
" [,plaintext-channel=[main|display|cursor|inputs|record|playback]]\n"
|
" [,plaintext-channel=[main|display|cursor|inputs|record|playback]]\n"
|
||||||
" [,sasl=on|off][,disable-ticketing=on|off]\n"
|
" [,sasl=on|off][,disable-ticketing=on|off]\n"
|
||||||
" [,password=<string>][,password-secret=<secret-id>]\n"
|
" [,password-secret=<secret-id>]\n"
|
||||||
" [,image-compression=[auto_glz|auto_lz|quic|glz|lz|off]]\n"
|
" [,image-compression=[auto_glz|auto_lz|quic|glz|lz|off]]\n"
|
||||||
" [,jpeg-wan-compression=[auto|never|always]]\n"
|
" [,jpeg-wan-compression=[auto|never|always]]\n"
|
||||||
" [,zlib-glz-wan-compression=[auto|never|always]]\n"
|
" [,zlib-glz-wan-compression=[auto|never|always]]\n"
|
||||||
|
@ -2161,13 +2161,6 @@ SRST
|
||||||
``ipv4=on|off``; \ ``ipv6=on|off``; \ ``unix=on|off``
|
``ipv4=on|off``; \ ``ipv6=on|off``; \ ``unix=on|off``
|
||||||
Force using the specified IP version.
|
Force using the specified IP version.
|
||||||
|
|
||||||
``password=<string>``
|
|
||||||
Set the password you need to authenticate.
|
|
||||||
|
|
||||||
This option is deprecated and insecure because it leaves the
|
|
||||||
password visible in the process listing. Use ``password-secret``
|
|
||||||
instead.
|
|
||||||
|
|
||||||
``password-secret=<secret-id>``
|
``password-secret=<secret-id>``
|
||||||
Set the ID of the ``secret`` object containing the password
|
Set the ID of the ``secret`` object containing the password
|
||||||
you need to authenticate.
|
you need to authenticate.
|
||||||
|
|
|
@ -412,9 +412,6 @@ static QemuOptsList qemu_spice_opts = {
|
||||||
.name = "unix",
|
.name = "unix",
|
||||||
.type = QEMU_OPT_BOOL,
|
.type = QEMU_OPT_BOOL,
|
||||||
#endif
|
#endif
|
||||||
},{
|
|
||||||
.name = "password",
|
|
||||||
.type = QEMU_OPT_STRING,
|
|
||||||
},{
|
},{
|
||||||
.name = "password-secret",
|
.name = "password-secret",
|
||||||
.type = QEMU_OPT_STRING,
|
.type = QEMU_OPT_STRING,
|
||||||
|
@ -666,20 +663,8 @@ static void qemu_spice_init(void)
|
||||||
}
|
}
|
||||||
passwordSecret = qemu_opt_get(opts, "password-secret");
|
passwordSecret = qemu_opt_get(opts, "password-secret");
|
||||||
if (passwordSecret) {
|
if (passwordSecret) {
|
||||||
if (qemu_opt_get(opts, "password")) {
|
|
||||||
error_report("'password' option is mutually exclusive with "
|
|
||||||
"'password-secret'");
|
|
||||||
exit(1);
|
|
||||||
}
|
|
||||||
password = qcrypto_secret_lookup_as_utf8(passwordSecret,
|
password = qcrypto_secret_lookup_as_utf8(passwordSecret,
|
||||||
&error_fatal);
|
&error_fatal);
|
||||||
} else {
|
|
||||||
str = qemu_opt_get(opts, "password");
|
|
||||||
if (str) {
|
|
||||||
warn_report("'password' option is deprecated and insecure, "
|
|
||||||
"use 'password-secret' instead");
|
|
||||||
password = g_strdup(str);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (tls_port) {
|
if (tls_port) {
|
||||||
|
|
Loading…
Reference in New Issue