debuggers.hg

view .hgignore @ 22855:1d1eec7e1fb4

xl: Perform minimal validation of virtual disk file while parsing config file

This patch performs some very basic validation on the virtual disk
file passed through the config file. This validation ensures that we
don't go too far with the initialization like spawn qemu and more
while there could be some potentially fundamental issues.

[ Patch fixed up to work with PHYSTYPE_EMPTY 22808:6ec61438713a -iwj ]

Signed-off-by: Kamala Narasimhan <kamala.narasimhan@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
author Kamala Narasimhan <kamala.narasimhan@gmail.com>
date Tue Jan 25 18:09:49 2011 +0000 (2011-01-25)
parents 946d84529a07
children
line source
1 .*\.a$
2 .*\.cmi$
3 .*\.cmo$
4 .*\.cmx$
5 \..*\.d$
6 .*\.o$
7 .*\.opic$
8 .*\.pyc$
9 .*\.so$
10 .*\.so\..*$
11 .*\.tar\.bz2$
12 .*\.tar\.gz$
13 .*~$
14 .*\.tmp$
15 .*\.flc$
16 .*\.orig$
17 .*\.rej$
18 .*/a\.out$
19 .*/Modules\.symvers$
20 .*/cscope\..*$
21 ^cscope.*$
22 ^[^/]*\.bz2$
23 ^\.config$
24 ^\.pc
25 (^|/)(tags|TAGS)$
26 ^build-.*$
27 ^dist/.*$
28 ^docs/.*\.aux$
29 ^docs/.*\.dvi$
30 ^docs/.*\.log$
31 ^docs/.*\.pdf$
32 ^docs/.*\.ps$
33 ^docs/.*\.toc$
34 ^docs/api/.*$
35 ^docs/figs/xenserver\.eps$
36 ^docs/html/.*$
37 ^docs/interface/WARNINGS$
38 ^docs/interface/images\.pl$
39 ^docs/interface/images\.tex$
40 ^docs/interface/img1\.png$
41 ^docs/interface/index\.html$
42 ^docs/interface/interface\.css$
43 ^docs/interface/interface\.html$
44 ^docs/interface/labels\.pl$
45 ^docs/man1/
46 ^docs/man5/
47 ^docs/pdf/.*$
48 ^docs/ps/.*$
49 ^docs/user/WARNINGS$
50 ^docs/user/images\.pl$
51 ^docs/user/images\.tex$
52 ^docs/user/img1\.png$
53 ^docs/user/img2\.png$
54 ^docs/user/img3\.png$
55 ^docs/user/index\.html$
56 ^docs/user/internals\.pl$
57 ^docs/user/labels\.pl$
58 ^docs/user/user\.css$
59 ^docs/user/user\.html$
60 ^docs/xen-api/vm_lifecycle.eps$
61 ^docs/xen-api/xenapi-datamodel-graph.eps$
62 ^docs/xen-api/xenapi.out$
63 ^extras/mini-os/arch/ia64/gen_off.s$
64 ^extras/mini-os/include/mini-os$
65 ^extras/mini-os/include/ia64/mini-os$
66 ^extras/mini-os/include/ia64/offsets.h$
67 ^extras/mini-os/include/x86/mini-os$
68 ^extras/mini-os/include/xen$
69 ^extras/mini-os/mini-os.*$
70 ^install/.*$
71 ^linux-[^/]*-paravirt/.*$
72 ^linux-2.6[^/]*/.*$
73 ^linux-[^/]*-rc/.*$
74 ^linux-[^/]*-tip/.*$
75 ^linux-[^/]*-git/.*$
76 ^linux-[^/]*\.patch$
77 ^mkddbxen$
78 ^netbsd-[^/]*-tools/.*$
79 ^netbsd-[^/]*-xen0/.*$
80 ^netbsd-[^/]*-xenU/.*$
81 ^netbsd-[^/]*\.patch$
82 ^patches/.*/\.makedep$
83 ^patches/ebtables-brnf-5_vs_2\.4\.25\.diff$
84 ^patches/ebtables\.diff$
85 ^patches/tmp/.*$
86 ^pristine-.*$
87 ^ref-.*$
88 ^tmp-.*$
89 ^stubdom/binutils-.*$
90 ^stubdom/cross-root-.*$
91 ^stubdom/gcc-.*$
92 ^stubdom/include$
93 ^stubdom/ioemu$
94 ^stubdom/xenstore$
95 ^stubdom/libxc-.*$
96 ^stubdom/lwip-.*$
97 ^stubdom/mini-os-.*$
98 ^stubdom/mk-headers-.*$
99 ^stubdom/newlib-.*$
100 ^stubdom/pciutils-.*$
101 ^stubdom/zlib-.*$
102 ^stubdom/grub-.*$
103 ^stubdom/ocaml-.*$
104 ^stubdom/lwip/
105 ^stubdom/ioemu/
106 ^stubdom/stubdompath\.sh$
107 ^tools/.*/build/lib.*/.*\.py$
108 ^tools/blktap2/control/tap-ctl$
109 ^tools/blktap2/drivers/img2qcow$
110 ^tools/blktap2/drivers/lock-util$
111 ^tools/blktap2/drivers/qcow-create$
112 ^tools/blktap2/drivers/qcow2raw$
113 ^tools/blktap2/drivers/tapdisk-client$
114 ^tools/blktap2/drivers/tapdisk-diff$
115 ^tools/blktap2/drivers/tapdisk-stream$
116 ^tools/blktap2/drivers/tapdisk2$
117 ^tools/blktap2/drivers/td-util$
118 ^tools/blktap2/vhd/vhd-update$
119 ^tools/blktap2/vhd/vhd-util$
120 ^tools/blktap/drivers/blktapctrl$
121 ^tools/blktap/drivers/img2qcow$
122 ^tools/blktap/drivers/qcow-create$
123 ^tools/blktap/drivers/qcow2raw$
124 ^tools/blktap/drivers/tapdisk$
125 ^tools/check/\..*$
126 ^tools/console/xenconsole$
127 ^tools/console/xenconsoled$
128 ^tools/debugger/gdb/gdb-6\.2\.1-linux-i386-xen/.*$
129 ^tools/debugger/gdb/gdb-6\.2\.1/.*$
130 ^tools/debugger/gdb/gdb-6\.2\.1\.tar\.bz2$
131 ^tools/debugger/gdbsx/gdbsx$
132 ^tools/debugger/kdd/kdd$
133 ^tools/debugger/xenitp/xenitp$
134 ^tools/firmware/.*/biossums$
135 ^tools/firmware/.*\.bin$
136 ^tools/firmware/.*\.sym$
137 ^tools/firmware/.*bios/.*bios.*\.txt$
138 ^tools/firmware/etherboot/eb-roms\.h$
139 ^tools/firmware/etherboot/ipxe/.*$
140 ^tools/firmware/etherboot/ipxe\.git/.*$
141 ^tools/firmware/extboot/extboot.img$
142 ^tools/firmware/extboot/signrom$
143 ^tools/firmware/hvmloader/acpi/dsdt.*\.c$
144 ^tools/firmware/hvmloader/acpi/ssdt_.*\.h$
145 ^tools/firmware/hvmloader/hvmloader$
146 ^tools/firmware/hvmloader/roms\.h$
147 ^tools/firmware/rombios/BIOS-bochs-[^/]*$
148 ^tools/firmware/rombios/_rombios[^/]*_\.c$
149 ^tools/firmware/rombios/rombios[^/]*\.s$
150 ^tools/firmware/rombios/32bit/32bitbios_flat\.h$
151 ^tools/firmware/vgabios/vbetables-gen$
152 ^tools/firmware/vgabios/vbetables\.h$
153 ^tools/flask/loadpolicy/flask-loadpolicy$
154 ^tools/flask/utils/flask-getenforce$
155 ^tools/flask/utils/flask-loadpolicy$
156 ^tools/flask/utils/flask-setenforce$
157 ^tools/fs-back/fs-backend$
158 ^tools/hotplug/common/hotplugpath\.sh$
159 ^tools/include/xen/.*$
160 ^tools/include/xen-foreign/.*\.(c|h|size)$
161 ^tools/include/xen-foreign/checker$
162 ^tools/ioemu/\.pc/.*$
163 ^tools/ioemu/config-host\.h$
164 ^tools/ioemu/config-host\.mak$
165 ^tools/ioemu/i386-dm/Makefile$
166 ^tools/ioemu/i386-dm/config\.h$
167 ^tools/ioemu/i386-dm/config\.mak$
168 ^tools/ioemu/i386-dm/qemu-dm$
169 ^tools/ioemu/qemu-doc\.html$
170 ^tools/ioemu/qemu-img\.1$
171 ^tools/ioemu/qemu-img\.pod$
172 ^tools/ioemu/qemu-tech\.html$
173 ^tools/ioemu/qemu\.1$
174 ^tools/ioemu/qemu\.pod$
175 ^tools/ioemu/tapdisk-ioemu$
176 ^tools/libxc/ia64/asm/.*\.h$
177 ^tools/libxc/ia64/acpi/.*\.h$
178 ^tools/libxc/ia64/acpi/platform/.*\.h$
179 ^tools/libxc/ia64/dom_fw_asm.S$
180 ^tools/libxc/ia64/dom_fw_common\.c$
181 ^tools/libxc/ia64/dom_fw_domu\.c$
182 ^tools/libxc/ia64/xen/.*\.h$
183 ^tools/libxen/libxenapi-
184 ^tools/libxen/test/test_bindings$
185 ^tools/libxen/test/test_event_handling$
186 ^tools/libxl/_.*\.h$
187 ^tools/libxl/_.*\.c$
188 ^tools/libxl/libxlu_cfg_y\.output$
189 ^tools/libxl/xl$
190 ^tools/libaio/src/.*\.ol$
191 ^tools/libaio/src/.*\.os$
192 ^tools/misc/cpuperf/cpuperf-perfcntr$
193 ^tools/misc/cpuperf/cpuperf-xen$
194 ^tools/misc/lomount/lomount$
195 ^tools/misc/mbootpack/bin2c$
196 ^tools/misc/mbootpack/bootsect$
197 ^tools/misc/mbootpack/bzimage_header\.c$
198 ^tools/misc/mbootpack/mbootpack$
199 ^tools/misc/mbootpack/setup$
200 ^tools/misc/miniterm/miniterm$
201 ^tools/misc/xc_shadow$
202 ^tools/misc/xen_cpuperf$
203 ^tools/misc/xen-detect$
204 ^tools/misc/xen-hptool$
205 ^tools/misc/xen-hvmcrash$
206 ^tools/misc/xen-tmem-list-parse$
207 ^tools/misc/xenperf$
208 ^tools/misc/xenpm$
209 ^tools/misc/xen-hvmctx$
210 ^tools/misc/gtraceview$
211 ^tools/misc/gtracestat$
212 ^tools/misc/xenlockprof$
213 ^tools/pygrub/build/.*$
214 ^tools/python/build/.*$
215 ^tools/python/xen/util/path\.py$
216 ^tools/python/xen/lowlevel/xl/_pyxl_types.c
217 ^tools/python/xen/lowlevel/xl/_pyxl_types.h
218 ^tools/remus/imqebt/imqebt$
219 ^tools/remus/kmod/.*(\.cmd|\.mod|\.ko|\.mod\.c|\.symvers|\.xen)$
220 ^tools/security/secpol_tool$
221 ^tools/security/xen/.*$
222 ^tools/security/xensec_tool$
223 ^tools/tests/x86_emulator/blowfish\.bin$
224 ^tools/tests/x86_emulator/blowfish\.h$
225 ^tools/tests/x86_emulator/test_x86_emulator$
226 ^tools/tests/x86_emulator/x86_emulate$
227 ^tools/tests/regression/installed/.*$
228 ^tools/tests/regression/build/.*$
229 ^tools/tests/regression/downloads/.*$
230 ^tools/tests/xen-access/xen-access$
231 ^tools/vnet/Make.local$
232 ^tools/vnet/build/.*$
233 ^tools/vnet/gc$
234 ^tools/vnet/gc.*/.*$
235 ^tools/vnet/vnet-module/.*\.ko$
236 ^tools/vnet/vnet-module/\..*\.cmd$
237 ^tools/vnet/vnet-module/\.tmp_versions/.*$
238 ^tools/vnet/vnet-module/vnet_module\.mod\..*$
239 ^tools/vnet/vnetd/vnetd$
240 ^tools/vtpm/tpm_emulator-.*\.tar\.gz$
241 ^tools/vtpm/tpm_emulator/.*$
242 ^tools/vtpm/vtpm/.*$
243 ^tools/vtpm_manager/manager/vtpm_managerd$
244 ^tools/xcutils/lsevtchn$
245 ^tools/xcutils/xc_restore$
246 ^tools/xcutils/xc_save$
247 ^tools/xcutils/readnotes$
248 ^tools/misc/xenwatchdogd$
249 ^tools/xenfb/sdlfb$
250 ^tools/xenfb/vncfb$
251 ^tools/xenmon/xentrace_setmask$
252 ^tools/xenmon/xenbaked$
253 ^tools/xenpaging/xenpaging$
254 ^tools/xenpmd/xenpmd$
255 ^tools/xenstat/xentop/xentop$
256 ^tools/xenstore/testsuite/tmp/.*$
257 ^tools/xenstore/xen$
258 ^tools/xenstore/xenstore$
259 ^tools/xenstore/xenstore-chmod$
260 ^tools/xenstore/xenstore-exists$
261 ^tools/xenstore/xenstore-list$
262 ^tools/xenstore/xenstore-read$
263 ^tools/xenstore/xenstore-rm$
264 ^tools/xenstore/xenstore-write$
265 ^tools/xenstore/xenstore-control$
266 ^tools/xenstore/xenstore-ls$
267 ^tools/xenstore/xenstore-watch$
268 ^tools/xenstore/xenstored$
269 ^tools/xenstore/xenstored_test$
270 ^tools/xenstore/xs_crashme$
271 ^tools/xenstore/xs_random$
272 ^tools/xenstore/xs_stress$
273 ^tools/xenstore/xs_tdb_dump$
274 ^tools/xenstore/xs_test$
275 ^tools/xenstore/xs_watch_stress$
276 ^tools/xentrace/xentrace_setsize$
277 ^tools/xentrace/tbctl$
278 ^tools/xentrace/xenctx$
279 ^tools/xentrace/xentrace$
280 ^tools/xm-test/ramdisk/buildroot
281 ^tools/xm-test/aclocal.m4$
282 ^tools/xm-test/autom4te
283 ^tools/xm-test/install-sh$
284 ^tools/xm-test/mkinstalldirs$
285 ^tools/xm-test/missing$
286 ^tools/xm-test/config(ure|.log|.status|.guess|.sub)$
287 ^tools/xm-test/Makefile(.in)*$
288 ^tools/xm-test/.*/Makefile(.in)*$
289 ^tools/xm-test/lib/XmTestLib/config.py$
290 ^tools/xm-test/lib/XmTestReport/xmtest.py$
291 ^tools/xm-test/tests/.*\.test$
292 ^tools/ioemu-remote
293 ^tools/ioemu-dir$
294 ^tools/ocaml/.*/.*\.annot$
295 ^tools/ocaml/.*/.*\.cmx?a$
296 ^tools/ocaml/.*/META$
297 ^tools/ocaml/.*/\.ocamldep\.make$
298 ^tools/ocaml/xenstored/oxenstored$
299 ^xen/\.banner.*$
300 ^xen/BLOG$
301 ^xen/System.map$
302 ^xen/arch/x86/asm-offsets\.s$
303 ^xen/arch/x86/boot/mkelf32$
304 ^xen/arch/x86/xen\.lds$
305 ^xen/arch/x86/boot/reloc.S$
306 ^xen/ddb/.*$
307 ^xen/include/headers\.chk$
308 ^xen/include/asm$
309 ^xen/include/asm-.*/asm-offsets\.h$
310 ^xen/include/asm-ia64/asm-xsi-offsets\.h$
311 ^xen/include/asm-ia64/.offsets.h.stamp$
312 ^xen/include/asm-ia64/xen$
313 ^xen/include/compat/.*$
314 ^xen/include/hypervisor-ifs/arch$
315 ^xen/include/linux$
316 ^xen/include/public/public$
317 ^xen/include/xen/.*\.new$
318 ^xen/include/xen/acm_policy\.h$
319 ^xen/include/xen/banner\.h$
320 ^xen/include/xen/compile\.h$
321 ^xen/tools/figlet/figlet$
322 ^xen/tools/symbols$
323 ^xen/xen$
324 ^xen/xen-syms$
325 ^xen/xen\..*$
326 ^xen/arch/ia64/asm-offsets\.s$
327 ^xen/arch/ia64/asm-xsi-offsets\.s$
328 ^xen/arch/ia64/map\.out$
329 ^xen/arch/ia64/xen\.lds\.s$
330 ^unmodified_drivers/linux-2.6/\.tmp_versions
331 ^unmodified_drivers/linux-2.6/.*\.cmd$
332 ^unmodified_drivers/linux-2.6/.*\.ko$
333 ^unmodified_drivers/linux-2.6/.*\.mod\.c$
334 ^LibVNCServer.*