libvirt/src/conf
Cole Robinson a7fb2258ca storage: Sanitize pool target paths
Spurious / in a pool target path makes life difficult for apps using the
GetVolByPath, and doing other path based comparisons with pools. This
has caused a few issues for virt-manager users:

https://bugzilla.redhat.com/show_bug.cgi?id=494005
https://bugzilla.redhat.com/show_bug.cgi?id=593565

Add a new util API which removes spurious /, virFileSanitizePath. Sanitize
target paths when parsing pool XML, and for paths passed to GetVolByPath.

v2: Leading // must be preserved, properly sanitize path=/, sanitize
    away /./ -> /

v3: Properly handle starting ./ and ending /.

v4: Drop all '.' handling, just sanitize / for now.
2010-05-25 12:30:44 -04:00
..
capabilities.c Expose a host UUID in the capabilities XML 2010-05-25 17:09:18 +01:00
capabilities.h Expose a host UUID in the capabilities XML 2010-05-25 17:09:18 +01:00
cpu_conf.c Only parse 'CPU XML' in virCPUDefParseXML() 2010-04-01 14:04:43 +02:00
cpu_conf.h Helper function for making a copy of virCPUDefPtr 2010-03-26 23:03:17 +01:00
domain_conf.c Remove isValidIfname. 2010-05-21 09:32:15 -04:00
domain_conf.h Remove isValidIfname. 2010-05-21 09:32:15 -04:00
domain_event.c Fix possible crash in handling IO Error event 2010-05-14 09:18:51 -04:00
domain_event.h Add support for another explicit IO error event 2010-04-30 15:52:59 +01:00
interface_conf.c maint: add more free-like functions to the list and deal with fallout 2010-05-18 07:53:42 +02:00
interface_conf.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
network_conf.c maint: add more free-like functions to the list and deal with fallout 2010-05-18 07:53:42 +02:00
network_conf.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
node_device_conf.c Use common XML parsing functions 2010-03-23 15:40:10 +01:00
node_device_conf.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
nwfilter_conf.c virNWFilterDefParseXML: avoid leak on error paths 2010-05-18 19:23:32 +02:00
nwfilter_conf.h nwfilter: skip some interfaces on filter update 2010-05-03 18:14:58 -04:00
nwfilter_params.c This patch removes the virConnectPtr parameter from all functions where it's not necessary starting out with removing it as a parameter to the error reporting function. 2010-04-05 12:34:55 -04:00
nwfilter_params.h This patch removes the virConnectPtr parameter from all functions where it's not necessary starting out with removing it as a parameter to the error reporting function. 2010-04-05 12:34:55 -04:00
secret_conf.c Use common XML parsing functions 2010-03-23 15:40:10 +01:00
secret_conf.h build: consistently indent preprocessor directives 2010-03-09 19:22:28 +01:00
storage_conf.c storage: Sanitize pool target paths 2010-05-25 12:30:44 -04:00
storage_conf.h Add CIFS to the list of network file systems 2010-05-18 01:34:34 +02:00
storage_encryption_conf.c storage_encryption: silence clang warning 2010-05-10 13:53:12 -06:00
storage_encryption_conf.h storage_encryption: silence clang warning 2010-05-10 13:53:12 -06:00