mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
libxl: correct xenstore permissions on console device
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>
This commit is contained in:
1 parent
f12696a8c0
commit
ecdb0c7aec
1 file changed
+2
@@ -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);
|
||||
|
||||
|
||||