[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen stable-4.6] libxl: Do not trust backend in libxl__device_exists
commit 92527ae6b898e909a2d6dceae9ad54d3dab5cc81 Author: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> AuthorDate: Wed May 4 15:04:35 2016 +0100 Commit: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx> CommitDate: Mon Jun 6 14:47:35 2016 +0100 libxl: Do not trust backend in libxl__device_exists To determine whether a device is supposed to exist, look in /libxl, rather than the backend. This is part of XSA-178. Signed-off-by: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx> Reviewed-by: Wei Liu <wei.liu2@xxxxxxxxxx> --- tools/libxl/libxl_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libxl/libxl_device.c b/tools/libxl/libxl_device.c index 2b7cd25..a81baee 100644 --- a/tools/libxl/libxl_device.c +++ b/tools/libxl/libxl_device.c @@ -54,7 +54,7 @@ int libxl__device_exists(libxl__gc *gc, xs_transaction_t t, libxl__device *device) { int rc; - char *be_path = libxl__device_backend_path(gc, device); + char *be_path = libxl__device_libxl_path(gc, device); const char *dir; rc = libxl__xs_read_checked(gc, t, be_path, &dir); -- generated by git-patchbot for /home/xen/git/xen.git#stable-4.6 _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |