Compare commits
357 Commits
libvirt-0_
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
21316e7a45 | ||
|
|
8adbb7a402 | ||
|
|
3f19d41908 | ||
|
|
34da93e0c9 | ||
|
|
208f506190 | ||
|
|
0ca715cad9 | ||
|
|
0f5d8c1c22 | ||
|
|
a56bcbd063 | ||
|
|
89c3fa751c | ||
|
|
051644ffcb | ||
|
|
2a9c282548 | ||
|
|
2ae80af461 | ||
|
|
7335ede0e1 | ||
|
|
6c92ba3805 | ||
|
|
446f680673 | ||
|
|
3f56aa2870 | ||
|
|
3cec91694f | ||
|
|
cb0cfa566f | ||
|
|
a27acebf66 | ||
|
|
99d3a0ca1a | ||
|
|
9c962ebc4f | ||
|
|
99cbbf6606 | ||
|
|
b73e509648 | ||
|
|
b23ff9c0f7 | ||
|
|
20f9ed9c4c | ||
|
|
04cb28c315 | ||
|
|
a74ea318d1 | ||
|
|
98ed6b4e36 | ||
|
|
2c49d1fd11 | ||
|
|
6e7bca6631 | ||
|
|
2fe145bb02 | ||
|
|
10b7d235e3 | ||
|
|
232e2e7de2 | ||
|
|
fb1e4b061e | ||
|
|
0b1a013081 | ||
|
|
a972457f43 | ||
|
|
67cfa34a05 | ||
|
|
fc2ebb7646 | ||
|
|
e92b461b4f | ||
|
|
b1ac7b5791 | ||
|
|
88424efe85 | ||
|
|
4e2aab98a2 | ||
|
|
f4bc1a2fe2 | ||
|
|
a4bf2768b8 | ||
|
|
47cd44e9da | ||
|
|
731c6b90ff | ||
|
|
47ca46905d | ||
|
|
860ffc5b13 | ||
|
|
611b2ee520 | ||
|
|
edcb926f9d | ||
|
|
caebff8304 | ||
|
|
8fa41135ca | ||
|
|
0debbff964 | ||
|
|
d6cc78be66 | ||
|
|
8d9645735e | ||
|
|
4c65f08330 | ||
|
|
2427f8f078 | ||
|
|
d168e4f934 | ||
|
|
4dd365589f | ||
|
|
50e253df29 | ||
|
|
cb71801a2b | ||
|
|
4a9c74e91d | ||
|
|
281508ec99 | ||
|
|
feb92626e1 | ||
|
|
93cadb0880 | ||
|
|
dd6b57aa60 | ||
|
|
b8cb754e9d | ||
|
|
dbe61507bd | ||
|
|
ce7b23d9d0 | ||
|
|
8ded6ff93e | ||
|
|
1ef96f3488 | ||
|
|
ee3bf37900 | ||
|
|
7452a06938 | ||
|
|
fe8f9ed9c4 | ||
|
|
1b64f74c82 | ||
|
|
c81949046d | ||
|
|
19dcb913e6 | ||
|
|
e4b5ba1a9d | ||
|
|
5f1a422d83 | ||
|
|
c5b0b3ef9d | ||
|
|
c0a04cb876 | ||
|
|
3cc7cdf12f | ||
|
|
6b531d9967 | ||
|
|
4d05ac021c | ||
|
|
d29aa84b17 | ||
|
|
a075adc818 | ||
|
|
4d0e63f99c | ||
|
|
9e11936ec5 | ||
|
|
a4075ec632 | ||
|
|
dadb59c95f | ||
|
|
e73cc6a9d8 | ||
|
|
10cd84e37f | ||
|
|
e63e2040cd | ||
|
|
91063332d7 | ||
|
|
503330ba5d | ||
|
|
0a64085f47 | ||
|
|
1073e2447a | ||
|
|
5b1a906ace | ||
|
|
aff97e0146 | ||
|
|
a4b41a378b | ||
|
|
3ec523d168 | ||
|
|
622cf0d642 | ||
|
|
a540751e83 | ||
|
|
11b596669a | ||
|
|
fefbae879b | ||
|
|
695b281409 | ||
|
|
9f9eae34c1 | ||
|
|
ae37ed3500 | ||
|
|
f7f509999b | ||
|
|
419bcc4b2f | ||
|
|
7b59d4f7eb | ||
|
|
03326e9c04 | ||
|
|
f40b464d1e | ||
|
|
810ca6c207 | ||
|
|
8df3aef6aa | ||
|
|
0223d5a656 | ||
|
|
aad810a204 | ||
|
|
1b8b7567b1 | ||
|
|
442040caac | ||
|
|
65efaafca2 | ||
|
|
e87c8ab0c7 | ||
|
|
be6bda45b4 | ||
|
|
8c9e40d383 | ||
|
|
0f6f9b973a | ||
|
|
3db6039b2b | ||
|
|
4051217c8b | ||
|
|
c5c28baba1 | ||
|
|
43618df1d4 | ||
|
|
a2951dccb5 | ||
|
|
b884323c03 | ||
|
|
adeaf839fd | ||
|
|
40d99010e1 | ||
|
|
11755d8663 | ||
|
|
2daa92daf9 | ||
|
|
db2858c661 | ||
|
|
53adb9aaba | ||
|
|
168df8b606 | ||
|
|
f9085f2538 | ||
|
|
b159bbdc98 | ||
|
|
a5af3cf105 | ||
|
|
27ca069db7 | ||
|
|
000a3274d2 | ||
|
|
19c7799c31 | ||
|
|
198ff818c6 | ||
|
|
e80c83ad06 | ||
|
|
660e0112c6 | ||
|
|
45c1cabef6 | ||
|
|
56be2c5e38 | ||
|
|
4aa9c4f1a3 | ||
|
|
7be420ad22 | ||
|
|
40b00623a4 | ||
|
|
ce09ec66c7 | ||
|
|
97d7c80e2e | ||
|
|
b856ae03bf | ||
|
|
803b3b891a | ||
|
|
350081d1a9 | ||
|
|
1b71b68bb9 | ||
|
|
4084288dd5 | ||
|
|
d1cd1b7ceb | ||
|
|
5ed69704b9 | ||
|
|
be6e136cb1 | ||
|
|
d3109abfa4 | ||
|
|
f5ff4a2393 | ||
|
|
8cc50838dc | ||
|
|
2c2e71c0ce | ||
|
|
96b1b18b42 | ||
|
|
f7763bfd17 | ||
|
|
404e58cb18 | ||
|
|
cd3767e3b9 | ||
|
|
f1867a5ecc | ||
|
|
b5548f62cb | ||
|
|
52f3bedee7 | ||
|
|
f87237919c | ||
|
|
e8969fb913 | ||
|
|
74d46bc7dd | ||
|
|
4b6ea94306 | ||
|
|
963754bc8c | ||
|
|
7b5483236c | ||
|
|
438006407c | ||
|
|
76c8282ee2 | ||
|
|
f463598b24 | ||
|
|
f4e752a385 | ||
|
|
c37cb21dea | ||
|
|
e0bfc1f8aa | ||
|
|
544ad4a787 | ||
|
|
8f163760ed | ||
|
|
565427cf89 | ||
|
|
e10da2f6d4 | ||
|
|
aa386576d5 | ||
|
|
c73c129b48 | ||
|
|
afe729ac3c | ||
|
|
b6038bae4f | ||
|
|
e6d9787587 | ||
|
|
44699dc495 | ||
|
|
991d719dde | ||
|
|
96a520b555 | ||
|
|
e31df5e9de | ||
|
|
6763b267b9 | ||
|
|
24e91208a4 | ||
|
|
15dec999e7 | ||
|
|
d6b0635d3d | ||
|
|
336a93264e | ||
|
|
6398d1cff5 | ||
|
|
6926ed26ea | ||
|
|
6253f97a2d | ||
|
|
37ddbd0eac | ||
|
|
95fe7c8df2 | ||
|
|
79ae809020 | ||
|
|
f19e302ba9 | ||
|
|
e9c1d3f4b0 | ||
|
|
0f577d932b | ||
|
|
21a02c2e90 | ||
|
|
4e460d5f09 | ||
|
|
f9de2f6bc6 | ||
|
|
2daa1b7814 | ||
|
|
f99eeb8567 | ||
|
|
7069f75cb8 | ||
|
|
2cac7dac46 | ||
|
|
913c3c6554 | ||
|
|
a5a4c0c89b | ||
|
|
8c8aca2fab | ||
|
|
daf8e124ca | ||
|
|
38c4b724fe | ||
|
|
4d00487275 | ||
|
|
a6831c26c1 | ||
|
|
c363c7ebdb | ||
|
|
18ee6daf8a | ||
|
|
459eb426c3 | ||
|
|
a0d670d2bf | ||
|
|
d7b41212c1 | ||
|
|
2e1539eba4 | ||
|
|
ee9521d87c | ||
|
|
8d8fc08bac | ||
|
|
e79d304c79 | ||
|
|
db03f03fd9 | ||
|
|
957403ebec | ||
|
|
6c32e1aaeb | ||
|
|
362e335c0b | ||
|
|
ed6c49f874 | ||
|
|
47fcec5405 | ||
|
|
d7239a45b6 | ||
|
|
f13fb18c58 | ||
|
|
d29644418d | ||
|
|
ed9e426b26 | ||
|
|
659febf9ff | ||
|
|
fca1fccfad | ||
|
|
f713d63bab | ||
|
|
5a45e466cf | ||
|
|
742b24eb23 | ||
|
|
03369d2383 | ||
|
|
2605d662e0 | ||
|
|
e8394ab5b5 | ||
|
|
8ad156a5c2 | ||
|
|
f2d6fb6239 | ||
|
|
e3a592c38d | ||
|
|
7e99819dda | ||
|
|
a160d7f98d | ||
|
|
36cab842e8 | ||
|
|
7b7b86e327 | ||
|
|
f4bfe638b6 | ||
|
|
0e9d242f05 | ||
|
|
e24467a8c2 | ||
|
|
b39c370a76 | ||
|
|
62e4e7cde2 | ||
|
|
f822179f97 | ||
|
|
47e7e1e548 | ||
|
|
e73b75314b | ||
|
|
8193a55b4a | ||
|
|
6036708fa2 | ||
|
|
4717aa0b6d | ||
|
|
97ae25ea7d | ||
|
|
6470ed033b | ||
|
|
b550f9c1d5 | ||
|
|
ee0273ffc3 | ||
|
|
50fce74b00 | ||
|
|
e29f71d1c9 | ||
|
|
427ed20801 | ||
|
|
d23e6c285b | ||
|
|
2c139b45d8 | ||
|
|
762435e3b7 | ||
|
|
6383d6b056 | ||
|
|
3712441ea6 | ||
|
|
9d0bc882fa | ||
|
|
90dddf3d3d | ||
|
|
86abd54d02 | ||
|
|
4ab5ad5425 | ||
|
|
f9c1b758c3 | ||
|
|
38cf1bd5ba | ||
|
|
aeda455930 | ||
|
|
288291b795 | ||
|
|
7c2073faca | ||
|
|
5b528ba717 | ||
|
|
4f731a7250 | ||
|
|
f1ac0031f5 | ||
|
|
e45b9c9030 | ||
|
|
3cf75c269d | ||
|
|
585033f372 | ||
|
|
897506e66a | ||
|
|
e4bf8ffa42 | ||
|
|
20367a58a6 | ||
|
|
aa037364ed | ||
|
|
c034c1a3b2 | ||
|
|
da05e02884 | ||
|
|
e1b7b518ac | ||
|
|
581b5f5022 | ||
|
|
c476c8b683 | ||
|
|
b93eafc59f | ||
|
|
2105d62ca8 | ||
|
|
743adffffe | ||
|
|
11e3b51c0d | ||
|
|
66df925739 | ||
|
|
b20a5c6d3b | ||
|
|
7f58f3aa54 | ||
|
|
6577b14441 | ||
|
|
2e7812764f | ||
|
|
854b878580 | ||
|
|
89c28e4013 | ||
|
|
db269c2d21 | ||
|
|
98e4f7ee9f | ||
|
|
0c4afc5ee9 | ||
|
|
593255292e | ||
|
|
ccafc8ecb4 | ||
|
|
a38fb9cbc1 | ||
|
|
6359121866 | ||
|
|
b20d669e88 | ||
|
|
a3e1cc37ed | ||
|
|
a6eca3382d | ||
|
|
c6c5072e90 | ||
|
|
705fd20a0e | ||
|
|
e0e9927d93 | ||
|
|
bae7a0fb84 | ||
|
|
36aee593bc | ||
|
|
dc0cb0e91a | ||
|
|
84d66312fe | ||
|
|
4f644ce267 | ||
|
|
cdd5b3d62d | ||
|
|
53f63aa62d | ||
|
|
748df35c5f | ||
|
|
a6e23d00fa | ||
|
|
c6d11b43c9 | ||
|
|
83091ff0dd | ||
|
|
4465a63872 | ||
|
|
3f397d9786 | ||
|
|
750aec5507 | ||
|
|
d7c1d3bbc0 | ||
|
|
fa0f21c263 | ||
|
|
afdaf5d354 | ||
|
|
26bba5aea9 | ||
|
|
1a4185bdcc | ||
|
|
6a73119e65 | ||
|
|
1e2f9fce0a | ||
|
|
f5edf79c95 | ||
|
|
b59e64bf44 | ||
|
|
a09fc2658a | ||
|
|
a008fcf27e | ||
|
|
511f6cd625 | ||
|
|
48b90fefc1 |
@@ -1,7 +0,0 @@
|
||||
.build*.log
|
||||
*.rpm
|
||||
i686
|
||||
x86_64
|
||||
libvirt-*.tar.gz
|
||||
libvirt-0.6.0.tar.gz
|
||||
libvirt-0.6.1.tar.gz
|
||||
5
.gitignore
vendored
Normal file
5
.gitignore
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
.build*.log
|
||||
*.rpm
|
||||
i686
|
||||
x86_64
|
||||
libvirt-*.tar.xz
|
||||
2
Makefile
2
Makefile
@@ -4,7 +4,7 @@ NAME := libvirt
|
||||
SPECFILE = $(firstword $(wildcard *.spec))
|
||||
|
||||
define find-makefile-common
|
||||
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
||||
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
diff -rup libvirt-0.6.1.orig/src/storage_driver.c libvirt-0.6.1.new/src/storage_driver.c
|
||||
--- libvirt-0.6.1.orig/src/storage_driver.c 2009-02-16 03:43:41.000000000 -0500
|
||||
+++ libvirt-0.6.1.new/src/storage_driver.c 2009-03-06 08:02:51.000000000 -0500
|
||||
@@ -1296,7 +1296,6 @@ storageVolumeDelete(virStorageVolPtr obj
|
||||
ret = 0;
|
||||
|
||||
cleanup:
|
||||
- virStorageVolDefFree(vol);
|
||||
if (pool)
|
||||
virStoragePoolObjUnlock(pool);
|
||||
return ret;
|
||||
@@ -1,277 +0,0 @@
|
||||
diff -r 961d4b1ca1d3 qemud/libvirtd_qemu.aug
|
||||
--- a/qemud/libvirtd_qemu.aug Wed Mar 04 13:17:44 2009 +0000
|
||||
+++ b/qemud/libvirtd_qemu.aug Thu Mar 05 14:22:50 2009 +0000
|
||||
@@ -27,6 +27,8 @@ module Libvirtd_qemu =
|
||||
| str_entry "vnc_tls_x509_cert_dir"
|
||||
| bool_entry "vnc_tls_x509_verify"
|
||||
| str_entry "vnc_password"
|
||||
+ | bool_entry "vnc_sasl"
|
||||
+ | str_entry "vnc_sasl_dir"
|
||||
|
||||
(* Each enty in the config is one of the following three ... *)
|
||||
let entry = vnc_entry
|
||||
diff -r 961d4b1ca1d3 qemud/test_libvirtd_qemu.aug
|
||||
--- a/qemud/test_libvirtd_qemu.aug Wed Mar 04 13:17:44 2009 +0000
|
||||
+++ b/qemud/test_libvirtd_qemu.aug Thu Mar 05 14:22:50 2009 +0000
|
||||
@@ -60,6 +60,25 @@ vnc_tls_x509_verify = 1
|
||||
# example here before you set this
|
||||
#
|
||||
vnc_password = \"XYZ12345\"
|
||||
+
|
||||
+
|
||||
+# Enable use of SASL encryption on the VNC server. This requires
|
||||
+# a VNC client which supports the SASL protocol extension.
|
||||
+# Examples include vinagre, virt-viewer and virt-manager
|
||||
+# itself. UltraVNC, RealVNC, TightVNC do not support this
|
||||
+#
|
||||
+# It is necessary to configure /etc/sasl2/qemu.conf to choose
|
||||
+# the desired SASL plugin (eg, GSSPI for Kerberos)
|
||||
+#
|
||||
+vnc_sasl = 1
|
||||
+
|
||||
+
|
||||
+# The default SASL configuration file is located in /etc/sasl2/
|
||||
+# When running libvirtd unprivileged, it may be desirable to
|
||||
+# override the configs in this location. Set this parameter to
|
||||
+# point to the directory, and create a qemu.conf in that location
|
||||
+#
|
||||
+vnc_sasl_dir = \"/some/directory/sasl2\"
|
||||
"
|
||||
|
||||
test Libvirtd_qemu.lns get conf =
|
||||
@@ -123,3 +142,22 @@ vnc_password = \"XYZ12345\"
|
||||
{ "#comment" = "example here before you set this" }
|
||||
{ "#comment" = "" }
|
||||
{ "vnc_password" = "XYZ12345" }
|
||||
+{ "#empty" }
|
||||
+{ "#empty" }
|
||||
+{ "#comment" = "Enable use of SASL encryption on the VNC server. This requires" }
|
||||
+{ "#comment" = "a VNC client which supports the SASL protocol extension." }
|
||||
+{ "#comment" = "Examples include vinagre, virt-viewer and virt-manager" }
|
||||
+{ "#comment" = "itself. UltraVNC, RealVNC, TightVNC do not support this" }
|
||||
+{ "#comment" = "" }
|
||||
+{ "#comment" = "It is necessary to configure /etc/sasl2/qemu.conf to choose" }
|
||||
+{ "#comment" = "the desired SASL plugin (eg, GSSPI for Kerberos)" }
|
||||
+{ "#comment" = "" }
|
||||
+{ "vnc_sasl" = "1" }
|
||||
+{ "#empty" }
|
||||
+{ "#empty" }
|
||||
+{ "#comment" = "The default SASL configuration file is located in /etc/sasl2/" }
|
||||
+{ "#comment" = "When running libvirtd unprivileged, it may be desirable to" }
|
||||
+{ "#comment" = "override the configs in this location. Set this parameter to" }
|
||||
+{ "#comment" = "point to the directory, and create a qemu.conf in that location" }
|
||||
+{ "#comment" = "" }
|
||||
+{ "vnc_sasl_dir" = "/some/directory/sasl2" }
|
||||
diff -r 961d4b1ca1d3 src/qemu.conf
|
||||
--- a/src/qemu.conf Wed Mar 04 13:17:44 2009 +0000
|
||||
+++ b/src/qemu.conf Thu Mar 05 14:22:50 2009 +0000
|
||||
@@ -60,6 +60,27 @@
|
||||
# vnc_password = "XYZ12345"
|
||||
|
||||
|
||||
+# Enable use of SASL encryption on the VNC server. This requires
|
||||
+# a VNC client which supports the SASL protocol extension.
|
||||
+# Examples include vinagre, virt-viewer and virt-manager
|
||||
+# itself. UltraVNC, RealVNC, TightVNC do not support this
|
||||
+#
|
||||
+# It is necessary to configure /etc/sasl2/qemu.conf to choose
|
||||
+# the desired SASL plugin (eg, GSSPI for Kerberos)
|
||||
+#
|
||||
+# vnc_sasl = 1
|
||||
+
|
||||
+
|
||||
+# The default SASL configuration file is located in /etc/sasl2/
|
||||
+# When running libvirtd unprivileged, it may be desirable to
|
||||
+# override the configs in this location. Set this parameter to
|
||||
+# point to the directory, and create a qemu.conf in that location
|
||||
+#
|
||||
+# vnc_sasl_dir = "/some/directory/sasl2"
|
||||
+
|
||||
+
|
||||
+
|
||||
+
|
||||
# The default security driver is SELinux. If SELinux is disabled
|
||||
# on the host, then the security driver will automatically disable
|
||||
# itself. If you wish to disable QEMU SELinux security driver while
|
||||
diff -r 961d4b1ca1d3 src/qemu_conf.c
|
||||
--- a/src/qemu_conf.c Wed Mar 04 13:17:44 2009 +0000
|
||||
+++ b/src/qemu_conf.c Thu Mar 05 14:22:50 2009 +0000
|
||||
@@ -161,6 +161,21 @@ int qemudLoadDriverConfig(struct qemud_d
|
||||
}
|
||||
}
|
||||
|
||||
+ p = virConfGetValue (conf, "vnc_sasl");
|
||||
+ CHECK_TYPE ("vnc_sasl", VIR_CONF_LONG);
|
||||
+ if (p) driver->vncSASL = p->l;
|
||||
+
|
||||
+ p = virConfGetValue (conf, "vnc_sasl_dir");
|
||||
+ CHECK_TYPE ("vnc_sasl_dir", VIR_CONF_STRING);
|
||||
+ if (p && p->str) {
|
||||
+ VIR_FREE(driver->vncSASLdir);
|
||||
+ if (!(driver->vncSASLdir = strdup(p->str))) {
|
||||
+ virReportOOMError(NULL);
|
||||
+ virConfFree(conf);
|
||||
+ return -1;
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
virConfFree (conf);
|
||||
return 0;
|
||||
}
|
||||
@@ -838,15 +853,20 @@ int qemudBuildCommandLine(virConnectPtr
|
||||
goto no_memory; \
|
||||
} while (0)
|
||||
|
||||
+#define ADD_ENV_PAIR(envname, val) \
|
||||
+ do { \
|
||||
+ char *envval; \
|
||||
+ ADD_ENV_SPACE; \
|
||||
+ if (virAsprintf(&envval, "%s=%s", envname, val) < 0) \
|
||||
+ goto no_memory; \
|
||||
+ qenv[qenvc++] = envval; \
|
||||
+ } while (0)
|
||||
+
|
||||
#define ADD_ENV_COPY(envname) \
|
||||
do { \
|
||||
char *val = getenv(envname); \
|
||||
- char *envval; \
|
||||
- ADD_ENV_SPACE; \
|
||||
if (val != NULL) { \
|
||||
- if (virAsprintf(&envval, "%s=%s", envname, val) < 0) \
|
||||
- goto no_memory; \
|
||||
- qenv[qenvc++] = envval; \
|
||||
+ ADD_ENV_PAIR(envname, val); \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
@@ -1295,6 +1315,15 @@ int qemudBuildCommandLine(virConnectPtr
|
||||
driver->vncTLSx509certdir);
|
||||
}
|
||||
}
|
||||
+
|
||||
+ if (driver->vncSASL) {
|
||||
+ virBufferAddLit(&opt, ",sasl");
|
||||
+
|
||||
+ if (driver->vncSASLdir)
|
||||
+ ADD_ENV_PAIR("SASL_CONF_DIR", driver->vncSASLdir);
|
||||
+
|
||||
+ /* TODO: Support ACLs later */
|
||||
+ }
|
||||
} else {
|
||||
virBufferVSprintf(&opt, "%d",
|
||||
vm->def->graphics->data.vnc.port - 5900);
|
||||
diff -r 961d4b1ca1d3 src/qemu_conf.h
|
||||
--- a/src/qemu_conf.h Wed Mar 04 13:17:44 2009 +0000
|
||||
+++ b/src/qemu_conf.h Thu Mar 05 14:22:50 2009 +0000
|
||||
@@ -73,9 +73,11 @@ struct qemud_driver {
|
||||
char *stateDir;
|
||||
unsigned int vncTLS : 1;
|
||||
unsigned int vncTLSx509verify : 1;
|
||||
+ unsigned int vncSASL : 1;
|
||||
char *vncTLSx509certdir;
|
||||
char *vncListen;
|
||||
char *vncPassword;
|
||||
+ char *vncSASLdir;
|
||||
|
||||
virCapsPtr caps;
|
||||
|
||||
diff -r 961d4b1ca1d3 src/qemu_driver.c
|
||||
--- a/src/qemu_driver.c Wed Mar 04 13:17:44 2009 +0000
|
||||
+++ b/src/qemu_driver.c Thu Mar 05 14:22:50 2009 +0000
|
||||
@@ -620,6 +620,7 @@ qemudShutdown(void) {
|
||||
VIR_FREE(qemu_driver->vncTLSx509certdir);
|
||||
VIR_FREE(qemu_driver->vncListen);
|
||||
VIR_FREE(qemu_driver->vncPassword);
|
||||
+ VIR_FREE(qemu_driver->vncSASLdir);
|
||||
|
||||
/* Free domain callback list */
|
||||
virDomainEventCallbackListFree(qemu_driver->domainEventCallbacks);
|
||||
diff -r 961d4b1ca1d3 tests/qemuxml2argvdata/qemuxml2argv-graphics-vnc-sasl.args
|
||||
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
|
||||
+++ b/tests/qemuxml2argvdata/qemuxml2argv-graphics-vnc-sasl.args Thu Mar 05 14:22:50 2009 +0000
|
||||
@@ -0,0 +1,1 @@
|
||||
+LC_ALL=C PATH=/bin HOME=/home/test USER=test LOGNAME=test SASL_CONF_DIR=/root/.sasl2 /usr/bin/qemu -S -M pc -m 214 -smp 1 -monitor pty -pidfile /nowhere/QEMUGuest1.pid -no-acpi -boot c -hda /dev/HostVG/QEMUGuest1 -net none -serial none -parallel none -usb -vnc 127.0.0.1:3,sasl
|
||||
diff -r 961d4b1ca1d3 tests/qemuxml2argvdata/qemuxml2argv-graphics-vnc-sasl.xml
|
||||
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
|
||||
+++ b/tests/qemuxml2argvdata/qemuxml2argv-graphics-vnc-sasl.xml Thu Mar 05 14:22:50 2009 +0000
|
||||
@@ -0,0 +1,24 @@
|
||||
+<domain type='qemu'>
|
||||
+ <name>QEMUGuest1</name>
|
||||
+ <uuid>c7a5fdbd-edaf-9455-926a-d65c16db1809</uuid>
|
||||
+ <memory>219200</memory>
|
||||
+ <currentMemory>219200</currentMemory>
|
||||
+ <vcpu>1</vcpu>
|
||||
+ <os>
|
||||
+ <type arch='i686' machine='pc'>hvm</type>
|
||||
+ <boot dev='hd'/>
|
||||
+ </os>
|
||||
+ <clock offset='utc'/>
|
||||
+ <on_poweroff>destroy</on_poweroff>
|
||||
+ <on_reboot>restart</on_reboot>
|
||||
+ <on_crash>destroy</on_crash>
|
||||
+ <devices>
|
||||
+ <emulator>/usr/bin/qemu</emulator>
|
||||
+ <disk type='block' device='disk'>
|
||||
+ <source dev='/dev/HostVG/QEMUGuest1'/>
|
||||
+ <target dev='hda' bus='ide'/>
|
||||
+ </disk>
|
||||
+ <input type='mouse' bus='ps2'/>
|
||||
+ <graphics type='vnc' port='5903' autoport='no' listen='127.0.0.1'/>
|
||||
+ </devices>
|
||||
+</domain>
|
||||
diff -r 961d4b1ca1d3 tests/qemuxml2argvdata/qemuxml2argv-graphics-vnc-tls.args
|
||||
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
|
||||
+++ b/tests/qemuxml2argvdata/qemuxml2argv-graphics-vnc-tls.args Thu Mar 05 14:22:50 2009 +0000
|
||||
@@ -0,0 +1,1 @@
|
||||
+LC_ALL=C PATH=/bin HOME=/home/test USER=test LOGNAME=test SASL_CONF_DIR=/root/.sasl2 /usr/bin/qemu -S -M pc -m 214 -smp 1 -monitor pty -pidfile /nowhere/QEMUGuest1.pid -no-acpi -boot c -hda /dev/HostVG/QEMUGuest1 -net none -serial none -parallel none -usb -vnc 127.0.0.1:3,tls,x509verify=/etc/pki/tls/qemu,sasl
|
||||
diff -r 961d4b1ca1d3 tests/qemuxml2argvdata/qemuxml2argv-graphics-vnc-tls.xml
|
||||
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
|
||||
+++ b/tests/qemuxml2argvdata/qemuxml2argv-graphics-vnc-tls.xml Thu Mar 05 14:22:50 2009 +0000
|
||||
@@ -0,0 +1,24 @@
|
||||
+<domain type='qemu'>
|
||||
+ <name>QEMUGuest1</name>
|
||||
+ <uuid>c7a5fdbd-edaf-9455-926a-d65c16db1809</uuid>
|
||||
+ <memory>219200</memory>
|
||||
+ <currentMemory>219200</currentMemory>
|
||||
+ <vcpu>1</vcpu>
|
||||
+ <os>
|
||||
+ <type arch='i686' machine='pc'>hvm</type>
|
||||
+ <boot dev='hd'/>
|
||||
+ </os>
|
||||
+ <clock offset='utc'/>
|
||||
+ <on_poweroff>destroy</on_poweroff>
|
||||
+ <on_reboot>restart</on_reboot>
|
||||
+ <on_crash>destroy</on_crash>
|
||||
+ <devices>
|
||||
+ <emulator>/usr/bin/qemu</emulator>
|
||||
+ <disk type='block' device='disk'>
|
||||
+ <source dev='/dev/HostVG/QEMUGuest1'/>
|
||||
+ <target dev='hda' bus='ide'/>
|
||||
+ </disk>
|
||||
+ <input type='mouse' bus='ps2'/>
|
||||
+ <graphics type='vnc' port='5903' autoport='no' listen='127.0.0.1'/>
|
||||
+ </devices>
|
||||
+</domain>
|
||||
diff -r 961d4b1ca1d3 tests/qemuxml2argvtest.c
|
||||
--- a/tests/qemuxml2argvtest.c Wed Mar 04 13:17:44 2009 +0000
|
||||
+++ b/tests/qemuxml2argvtest.c Thu Mar 05 14:22:50 2009 +0000
|
||||
@@ -213,6 +213,19 @@ mymain(int argc, char **argv)
|
||||
QEMUD_CMD_FLAG_DRIVE_CACHE_V2);
|
||||
DO_TEST("disk-usb", 0);
|
||||
DO_TEST("graphics-vnc", 0);
|
||||
+
|
||||
+ driver.vncSASL = 1;
|
||||
+ driver.vncSASLdir = strdup("/root/.sasl2");
|
||||
+ DO_TEST("graphics-vnc-sasl", 0);
|
||||
+ driver.vncTLS = 1;
|
||||
+ driver.vncTLSx509verify = 1;
|
||||
+ driver.vncTLSx509certdir = strdup("/etc/pki/tls/qemu");
|
||||
+ DO_TEST("graphics-vnc-tls", 0);
|
||||
+ driver.vncSASL = driver.vncTLSx509verify = driver.vncTLS = 0;
|
||||
+ free(driver.vncSASLdir);
|
||||
+ free(driver.vncTLSx509certdir);
|
||||
+ driver.vncSASLdir = driver.vncTLSx509certdir = NULL;
|
||||
+
|
||||
DO_TEST("graphics-sdl", 0);
|
||||
DO_TEST("graphics-sdl-fullscreen", 0);
|
||||
DO_TEST("input-usbmouse", 0);
|
||||
2713
libvirt.spec
2713
libvirt.spec
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user