提交 b68a19be 编写于 作者: C Cole Robinson

Don't allow readonly connections to dump secure xml.

上级 2068f2f5
Mon Mar 16 13:17:05 EDT 2009 Cole Robinson <crobinso@redhat.com>
* src/libvirt.c: Don't allow readonly connections to dump secure xml.
Mon Mar 16 13:15:11 EDT 2009 Cole Robinson <crobinso@redhat.com>
* src/qemu_driver.c: Initialize security driver after config parsing
......
......@@ -2619,6 +2619,12 @@ virDomainGetXMLDesc(virDomainPtr domain, int flags)
conn = domain->conn;
if ((conn->flags & VIR_CONNECT_RO) && (flags & VIR_DOMAIN_XML_SECURE)) {
virLibConnError(conn, VIR_ERR_OPERATION_DENIED,
_("virDomainGetXMLDesc with secure flag"));
goto error;
}
if (conn->driver->domainDumpXML) {
char *ret;
ret = conn->driver->domainDumpXML (domain, flags);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册