Fix crash in libvirtd when events are registered & ACLs active
When a client disconnects from libvirtd, all event callbacks must be removed. This involves running the public API virConnectDomainEventDeregisterAny This code does not run in normal API dispatch context, so no identity was set. The result was that the access control drivers denied the attempt to deregister callbacks. The callbacks thus continued to trigger after the client was free'd causing fairly predictable use of free memory & a crash. This can be triggered by any client with readonly access when the ACL drivers are active. Signed-off-by: NDaniel P. Berrange <berrange@redhat.com> (cherry picked from commit 8294aa0c) Conflicts: daemon/remote.c: int/size_t changes
Showing
想要评论请 注册 或 登录