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:
Daniel De Graaf committed 2013-01-17 16:48:21 +00:00
1 parent f12696a8c0
commit ecdb0c7aec
1 file changed
+2
+2
View 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);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.