diff --git a/docs/news.html.in b/docs/news.html.in index aa4fd418e7..56c03b35c8 100644 --- a/docs/news.html.in +++ b/docs/news.html.in @@ -38,6 +38,8 @@ diff --git a/src/storage/storage_driver.c b/src/storage/storage_driver.c index 4f990f4c48..9900596572 100644 --- a/src/storage/storage_driver.c +++ b/src/storage/storage_driver.c @@ -780,6 +780,9 @@ storagePoolDefineXML(virConnectPtr conn, if (!(def = virStoragePoolDefParseString(xml))) goto cleanup; + if (virXMLCheckIllegalChars("name", def->name, "\n") < 0) + goto cleanup; + if (virStoragePoolDefineXMLEnsureACL(conn, def) < 0) goto cleanup;