• D
    Separate virGetHostname() API contract from driver APIs · ead63031
    Daniel P. Berrange 提交于
    Currently the virGetHostname() API has a bogus virConnectPtr
    parameter. This is because virtualization drivers directly
    reference this API in their virDriverPtr tables, tieing its
    API design to the public virConnectGetHostname API design.
    
    This also causes problems for access control checks since
    these must only be done for invocations from the public
    API, not internal invocation.
    
    Remove the bogus virConnectPtr parameter, and make each
    hypervisor driver provide a dedicated function for the
    driver API impl. This will allow access control checks
    to be easily inserted later.
    Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
    ead63031
xend_internal.c 109.0 KB