[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 2/6] spice: add option for disabling copy paste supp
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PATCH 2/6] spice: add option for disabling copy paste support |
Date: |
Wed, 18 May 2011 17:08:59 +0200 |
From: Hans de Goede <address@hidden>
Some people want to be able disable spice's guest <-> client copy paste support
because of security considerations.
[ kraxel: drop old-version error message ]
---
qemu-config.c | 3 +++
qemu-options.hx | 3 +++
ui/spice-core.c | 6 ++++++
3 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/qemu-config.c b/qemu-config.c
index 5d7ffa2..04c97e5 100644
--- a/qemu-config.c
+++ b/qemu-config.c
@@ -385,6 +385,9 @@ QemuOptsList qemu_spice_opts = {
.name = "disable-ticketing",
.type = QEMU_OPT_BOOL,
},{
+ .name = "disable-copy-paste",
+ .type = QEMU_OPT_BOOL,
+ },{
.name = "x509-dir",
.type = QEMU_OPT_STRING,
},{
diff --git a/qemu-options.hx b/qemu-options.hx
index 82e085a..63e8cb0 100644
--- a/qemu-options.hx
+++ b/qemu-options.hx
@@ -717,6 +717,9 @@ Set the password you need to authenticate.
@item disable-ticketing
Allow client connects without authentication.
address@hidden disable-copy-paste
+Disable copy paste between the client and the guest.
+
@item tls-port=<nr>
Set the TCP port spice is listening on for encrypted channels.
diff --git a/ui/spice-core.c b/ui/spice-core.c
index ef56ed6..a3351f3 100644
--- a/ui/spice-core.c
+++ b/ui/spice-core.c
@@ -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) {
--
1.7.1
- [Qemu-devel] [PULL] spice patch queue, Gerd Hoffmann, 2011/05/18
- [Qemu-devel] [PATCH 6/6] spice: require spice 0.6.0 or newer., Gerd Hoffmann, 2011/05/18
- [Qemu-devel] [PATCH 1/6] spice-qemu-char: Fix flow control in client -> guest direction, Gerd Hoffmann, 2011/05/18
- [Qemu-devel] [PATCH 4/6] spice: add SASL support, Gerd Hoffmann, 2011/05/18
- [Qemu-devel] [PATCH 5/6] qemu-config: comment spell fix, Gerd Hoffmann, 2011/05/18
- [Qemu-devel] [PATCH 2/6] spice: add option for disabling copy paste support,
Gerd Hoffmann <=
- [Qemu-devel] [PATCH 3/6] qxl: add to the list of devices which disable the default vga, Gerd Hoffmann, 2011/05/18