The open virtualization solution --qemu-kvm now supports SDL frame
buffer for its guest, but there is some problem when using it, it seems
some authority was needed to use SDL.
issue description:
the management stack would take out super user authority for
security reason before invoking qemu by calling:
"capng_clear(CAPNG_SELECT_BOTH);"
then qemu fail when following code excute:
flags = SDL_INIT_VIDEO | SDL_INIT_NOPARACHUTE;
if (SDL_Init (flags)) {
fprintf(stderr, "Could not initialize SDL(%s) - exiting\n",
SDL_GetError());
exit(1);
}
the environment arguments is set as
XAUTHORITY=/root/.Xauthority DISPLAY=:0.0
When “capng_clear(CAPNG_SELECT_BOTH);” is not called, then everything
is OK. So I wonder any special authority is needed to enable SDL, could
any one help check about it?–
Best Regards
Wayne Xia
mail:@Wayne_Xia
tel:86-010-82450803