1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00
freebsd/sys/geom
Jaakko Heinonen a41aa4a789 Escape characters unsafe for XML output in GEOM class, instance and
provider names.

- Characters in range 0x01-0x1f except '\t', '\n', and '\r' are replaced
  with '?'. Those characters are disallowed in XML.
- '&', '<', '>', '\'', '"' and characters in range 0x7f-0xff are
  replaced with XML numeric character reference.

If the kern.geom.confxml sysctl provides invalid XML, libgeom
geom_xml2tree() fails and utilities using it do not work. Unsafe
characters are common in msdosfs and cd9660 labels.

PR:		kern/104389
Submitted by:	Doug Steinwand (original version)
Reviewed by:	pjd
Discussed on:	freebsd-geom
MFC after:	3 weeks
2010-03-20 16:16:13 +00:00
..
bde
cache
concat Make geom_concat to passthrough stripe parameters of the first component, 2009-12-24 14:32:21 +00:00
eli Remove pointless assignment. 2010-01-25 16:58:58 +00:00
gate Simplify loops. 2010-03-18 13:11:43 +00:00
journal Make gjournal work with kernel compiled with "options DIAGNOSTIC". 2009-06-30 14:34:06 +00:00
label Provide a set of sysctls and tunables to disable device node creation 2009-11-28 11:57:43 +00:00
linux_lvm - Apply the same naming rules of LVM names as done in the LVM code itself. 2009-06-24 22:09:30 +00:00
mirror Move wakeup() out of mutex to reduce contention. 2010-01-05 10:30:56 +00:00
mountver Remove unused variable. 2010-01-25 16:10:22 +00:00
multipath - Style fixes. 2010-02-18 22:29:35 +00:00
nop
part Export the UUID of the partition in the XML. The partition UUID is used 2010-01-30 23:13:19 +00:00
raid3 Move wakeup() out of mutex to reduce contention. 2010-01-05 10:52:21 +00:00
shsec If provider is open for writing when we taste it, skip it for classes that 2009-10-09 09:42:22 +00:00
stripe Correct comment. 2010-02-18 22:28:12 +00:00
uzip Change the way in which zero stripesize is handled. Instead of reporting 2010-01-06 13:14:37 +00:00
vinum - Set missing flag when initiating a plex rebuild with the rebuildparity 2010-03-08 21:16:28 +00:00
virstor Prevent NULL deference by checking return value of 2010-02-02 22:25:22 +00:00
zero
geom_aes.c
geom_bsd_enc.c
geom_bsd.c Trivial patch to show on which geom has the error been detected. 2008-12-01 15:02:00 +00:00
geom_ccd.c - Fix a potential NULL pointer reference. Note that this should not happen in 2008-11-25 20:28:33 +00:00
geom_ctl.c
geom_ctl.h
geom_dev.c Add BIO_DELETE support to ada(4): 2009-12-28 20:08:01 +00:00
geom_disk.c Simplify g_disk_ident_adjust() function and allow any printable character 2009-09-04 09:39:06 +00:00
geom_disk.h Revert r190676,190677 2009-04-10 04:08:34 +00:00
geom_dump.c Escape characters unsafe for XML output in GEOM class, instance and 2010-03-20 16:16:13 +00:00
geom_event.c
geom_fox.c
geom_int.h
geom_io.c Call wakeup() only for the first request on the queue. 2009-12-30 17:23:27 +00:00
geom_kern.c
geom_mbr_enc.c
geom_mbr.c
geom_pc98_enc.c
geom_pc98.c
geom_redboot.c - Give geom_redboot taste of flash/spi. Now there is another provider 2010-02-03 01:12:19 +00:00
geom_slice.c Change the way in which zero stripesize is handled. Instead of reporting 2010-01-06 13:14:37 +00:00
geom_slice.h
geom_subr.c Log attach just like we log detach. 2010-02-18 22:27:38 +00:00
geom_sunlabel_enc.c
geom_sunlabel.c
geom_vfs.c Remove unused variable. 2009-09-08 17:20:17 +00:00
geom_vfs.h Remove the struct thread unuseful argument from bufobj interface. 2008-10-10 21:23:50 +00:00
geom_vol_ffs.c
geom.h Make gjournal work with kernel compiled with "options DIAGNOSTIC". 2009-06-30 14:34:06 +00:00
notes