Re: [PATCH 04/11] Separate virGetHostname() API contract from driver APIs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 05/02/2013 02:03 PM, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange@xxxxxxxxxx>
> 
> 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: Daniel P. Berrange <berrange@xxxxxxxxxx>
> ---
>  daemon/libvirtd-config.c         | 2 +-
>  src/check-driverimpls.pl         | 1 -
>  src/libxl/libxl_driver.c         | 9 ++++++++-
>  src/lxc/lxc_driver.c             | 9 ++++++++-
>  src/openvz/openvz_driver.c       | 9 ++++++++-
>  src/parallels/parallels_driver.c | 9 ++++++++-
>  src/qemu/qemu_driver.c           | 9 ++++++++-
>  src/qemu/qemu_migration.c        | 4 ++--
>  src/test/test_driver.c           | 8 +++++++-
>  src/uml/uml_driver.c             | 9 ++++++++-
>  src/util/virutil.c               | 2 +-
>  src/util/virutil.h               | 2 +-
>  src/vbox/vbox_tmpl.c             | 9 ++++++++-
>  src/xen/xen_driver.c             | 9 ++++++++-
>  src/xen/xend_internal.c          | 4 ++--
>  15 files changed, 78 insertions(+), 17 deletions(-)
> 

ACK

Jan

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]