[Libvirt-cim] [PATCH] Make cu_compare_ref() also compare the actual classname of the ref and inst
Dan Smith
danms at us.ibm.com
Thu Nov 8 19:25:05 UTC 2007
DS> # HG changeset patch
DS> # User Dan Smith <danms at us.ibm.com>
DS> # Date 1194548973 28800
DS> # Node ID a55a0f630c034ac5ed76211b8459ae1e4fdc56ae
DS> # Parent 41c761dba6a6268da6fdb9a89c1cc6f959870aac
DS> Make cu_compare_ref() also compare the actual classname of the ref and inst
This makes cu_compare_ref() assist association providers in avoiding
carefully crafted instances to fool the dispatch code. For example,
in HostedResourcePool, it (now) uses cu_compare_ref() to make sure the
client specified a valid HostSystem, but since ComputerSystem is a
CIM_System, if you pass ComputerSystem.Name="<hostname_of_system>",
HostedResourcePool would validate Name and proceed.
--
Dan Smith
IBM Linux Technology Center
Open Hypervisor Team
email: danms at us.ibm.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvirt-cim/attachments/20071108/6677baca/attachment.sig>
More information about the Libvirt-cim
mailing list