libvirt/src/rpc
Daniel P. Berrangé 69eee587da rpc: avoid name lookup when dispatching node device APIs
The node device APIs are a little unusual because we don't use a
"remote_nonnull_node_device" object on the wire, instead we just
have a "remote_string" for the device name. This meant dispatcher
code generation needed special cases. In doing so we mistakenly
used the virNodeDeviceLookupByName() API which gets dispatched
into the driver, instead of get_nonnull_node_device() which
directly populates a virNodeDevicePtr object.

This wasn't a problem with monolithic libvirtd, as the
virNodeDeviceLookupByName() API call was trivially satisfied
by the registered driver, albeit with an extra (undesirable)
authentication check. With the split daemons, the call to
virNodeDeviceLookupByName() fails in virtqemud, because the
node device driver obviously doesn't exist in that daemon.

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2020-03-17 13:58:20 +00:00
..
gendispatch.pl rpc: avoid name lookup when dispatching node device APIs 2020-03-17 13:58:20 +00:00
genprotocol.pl src: remove all traces of Cygwin support 2020-01-29 14:51:40 +00:00
Makefile.inc.am src: remove all traces of Cygwin support 2020-01-29 14:51:40 +00:00
virkeepalive.c
virkeepalive.h
virkeepaliveprotocol.x
virnetclient.c rpc: convert RPC client to use GMainLoop instead of poll 2020-02-07 15:03:53 +00:00
virnetclient.h src: remove WITH_GNUTLS usage 2020-01-22 18:07:09 +01:00
virnetclientprogram.c
virnetclientprogram.h
virnetclientstream.c
virnetclientstream.h
virnetdaemon.c util: json: Convert virJSONValueNewObject() to g_new0 2020-03-05 11:31:38 +01:00
virnetdaemon.h rpc: conditionalize signal handling 2020-01-29 14:51:40 +00:00
virnetlibsshsession.c Remove virutil.h where possible 2020-02-24 23:15:49 +01:00
virnetlibsshsession.h
virnetmessage.c
virnetmessage.h
virnetprotocol.x src: convert all code to use virsocket.h 2020-01-29 14:51:40 +00:00
virnetsaslcontext.c src: switch from fnmatch to g_pattern_match_simple 2020-01-03 15:42:13 +00:00
virnetsaslcontext.h
virnetserver.c virnetserver: Introduce virNetServerUpdateTlsFiles 2020-03-13 17:07:32 +00:00
virnetserver.h virnetserver: Introduce virNetServerUpdateTlsFiles 2020-03-13 17:07:32 +00:00
virnetserverclient.c tls: Add a mutex lock on 'tlsCtxt' 2020-03-13 17:07:32 +00:00
virnetserverclient.h
virnetserverprogram.c
virnetserverprogram.h
virnetserverservice.c util: json: Convert virJSONValueNewObject() to g_new0 2020-03-05 11:31:38 +01:00
virnetserverservice.h
virnetsocket.c rpc: getaddrinfo: also accept IPv4-mapped IPv6 addresses 2020-03-09 12:37:47 +01:00
virnetsocket.h src: remove WITH_GNUTLS usage 2020-01-22 18:07:09 +01:00
virnetsshsession.c Remove virutil.h where possible 2020-02-24 23:15:49 +01:00
virnetsshsession.h
virnettlscontext.c virnetserver: Introduce virNetServerUpdateTlsFiles 2020-03-13 17:07:32 +00:00
virnettlscontext.h virnetserver: Introduce virNetServerUpdateTlsFiles 2020-03-13 17:07:32 +00:00