]> xenbits.xensource.com Git - people/aperard/xen-arm.git/commitdiff
libxl: correct xenstore permissions on console device
authorDaniel De Graaf <dgdegra@tycho.nsa.gov>
Thu, 17 Jan 2013 16:48:21 +0000 (16:48 +0000)
committerDaniel De Graaf <dgdegra@tycho.nsa.gov>
Thu, 17 Jan 2013 16:48:21 +0000 (16:48 +0000)
When the console is connected to a domain other than dom0, the console
device's backend field should be set so the xenstore permissions for the
console device reflect the domain that will be accessing them.

Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl_create.c

index c6daec939f1ad3b93b91590182029a0b4515279e..a8dfe610e26dcee03a470633ffa47e6c801719f3 100644 (file)
@@ -967,6 +967,7 @@ static void domcreate_launch_dm(libxl__egc *egc, libxl__multidev *multidev,
         ret = init_console_info(&console, 0);
         if ( ret )
             goto error_out;
+        console.backend_domid = state->console_domid;
         libxl__device_console_add(gc, domid, &console, state);
         libxl__device_console_dispose(&console);
 
@@ -999,6 +1000,7 @@ static void domcreate_launch_dm(libxl__egc *egc, libxl__multidev *multidev,
                 d_config->num_vfbs, d_config->vfbs,
                 d_config->num_disks, &d_config->disks[0]);
 
+        console.backend_domid = state->console_domid;
         libxl__device_console_add(gc, domid, &console, state);
         libxl__device_console_dispose(&console);