mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-11 16:00:50 -07:00
spice: add option for disabling copy paste support
Some people want to be able disable spice's guest <-> client copy paste support because of security considerations. [ kraxel: drop old-version error message ]
This commit is contained in:
parent
35106c2df2
commit
d4970b071f
3 changed files with 12 additions and 0 deletions
|
|
@ -554,6 +554,12 @@ void qemu_spice_init(void)
|
|||
spice_server_set_noauth(spice_server);
|
||||
}
|
||||
|
||||
#if SPICE_SERVER_VERSION >= 0x000801
|
||||
if (qemu_opt_get_bool(opts, "disable-copy-paste", 0)) {
|
||||
spice_server_set_agent_copypaste(spice_server, false);
|
||||
}
|
||||
#endif
|
||||
|
||||
compression = SPICE_IMAGE_COMPRESS_AUTO_GLZ;
|
||||
str = qemu_opt_get(opts, "image-compression");
|
||||
if (str) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue