libvirt/src/storage
Ján Tomko bc680e1381 conf: prevent crash with no uuid in cephx auth secret
Fix the null pointer access when UUID is not specified.
Introduce a bool 'uuidUsable' to virStoragePoolAuthCephx that indicates
if uuid was specified or not and use it instead of the pointless
comparison of the static UUID array to NULL.
Add an error message if both uuid and usage are specified.

Fixes:
Error: FORWARD_NULL (CWE-476):
libvirt-0.10.2/src/conf/storage_conf.c:461: var_deref_model: Passing
    null pointer "uuid" to function "virUUIDParse(char const *, unsigned
    char *)", which dereferences it. (The dereference is assumed on the
    basis of the 'nonnull' parameter attribute.)
Error: NO_EFFECT (CWE-398):
    libvirt-0.10.2/src/conf/storage_conf.c:979: array_null: Comparing an
    array to null is not useful: "src->auth.cephx.secret.uuid != NULL".
2012-12-03 15:13:32 +01:00
..
parthelper.c Remove spurious whitespace between function name & open brackets 2012-11-02 13:36:49 +00:00
storage_backend_disk.c Remove spurious whitespace between function name & open brackets 2012-11-02 13:36:49 +00:00
storage_backend_disk.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
storage_backend_fs.c storage: Improve virStorageBackendFileSystemStop 2012-11-22 11:23:11 +08:00
storage_backend_fs.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
storage_backend_iscsi.c maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
storage_backend_iscsi.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
storage_backend_logical.c storage: fix logical volume cloning 2012-11-26 14:01:29 +01:00
storage_backend_logical.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
storage_backend_mpath.c Remove spurious whitespace between function name & open brackets 2012-11-02 13:36:49 +00:00
storage_backend_mpath.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
storage_backend_rbd.c conf: prevent crash with no uuid in cephx auth secret 2012-12-03 15:13:32 +01:00
storage_backend_rbd.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
storage_backend_scsi.c storage: Don't do wait loops from VolLookupByPath 2012-10-22 16:15:12 -04:00
storage_backend_scsi.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
storage_backend_sheepdog.c maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
storage_backend_sheepdog.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
storage_backend.c Remove spurious whitespace between function name & open brackets 2012-11-02 13:36:49 +00:00
storage_backend.h storage: don't shadow global 'wait' declaration 2012-10-23 13:56:59 +02:00
storage_driver.c Turn some dual-state int parameters into booleans 2012-11-29 16:14:43 +00:00
storage_driver.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00