mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
virDomainGetTime: Deny on RO connections
We have a policy that if API may end up talking to a guest agent it should require RW connection. We don't obey the rule in virDomainGetTime(). Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
95c370f0ee
commit
506e9d6c2d
@ -10934,6 +10934,7 @@ virDomainGetTime(virDomainPtr dom,
|
||||
virResetLastError();
|
||||
|
||||
virCheckDomainReturn(dom, -1);
|
||||
virCheckReadOnlyGoto(dom->conn->flags, error);
|
||||
|
||||
if (dom->conn->driver->domainGetTime) {
|
||||
int ret = dom->conn->driver->domainGetTime(dom, seconds,
|
||||
|
Loading…
x
Reference in New Issue
Block a user