New line character in name of storagepool is now forbidden because it
mess virsh output and can be confusing for users.
Validation of name is done in driver, after parsing XML to avoid
problems with dissappeared pools which was already created with
new-line char in name.
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
<ul>
<li>vz: Fix migration in P2P mode
</li>
+ <li>Forbid newline character in names of some libvirt objects.
+ </li>
</ul>
</li>
</ul>
if (!(def = virStoragePoolDefParseString(xml)))
goto cleanup;
+ if (virXMLCheckIllegalChars("name", def->name, "\n") < 0)
+ goto cleanup;
+
if (virStoragePoolDefineXMLEnsureACL(conn, def) < 0)
goto cleanup;