]> git.ipfire.org Git - thirdparty/libvirt.git/commit
remote: properly initialize objects in ACL helpers
authorDenis V. Lunev <den@openvz.org>
Tue, 19 Mar 2024 14:07:04 +0000 (15:07 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 3 Apr 2024 07:34:35 +0000 (09:34 +0200)
commitd37a4aa69c72f3fede657fc7a862d2d2c658961c
treec7c5f6ff5a01149a3568cc79fca97571dad84ec2
parentb902cfece0db71c3421b0bfe0e05d1dbe7890c31
remote: properly initialize objects in ACL helpers

Commit 2ecdf259299813c2c674377e22a0acbce5ccbbb2 was intended to
implement two things: reduce stack usage inside ACL helpers and
minimally initialize virDomainDef object to avoid passing garbage
inside validation framework. Though original commit has not
touched other ACL helpers.

This patch adds proper clauses to
    remoteRelayNetworkEventCheckACL
    remoteRelayStoragePoolEventCheckACL
    remoteRelayNodeDeviceEventCheckACL
    remoteRelaySecretEventCheckACL

Signed-off-by: Denis V. Lunev <den@openvz.org>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/remote/remote_daemon_dispatch.c