On Mon, Jun 20, 2005 at 02:43:46AM -0400, Walter Dnes wrote

>   Finally got it running.  Since SDL is hooked into svgalib (at least on
> my system) I had to...
>   - modprobe svgalib_helper (which creates /dev/svga and /dev/svga1)
>   - chmod u+s /usr/games/bin/dosbox (with the usual security disclaimer)
>   - and remember that svgalib has to be emerged every time I rebuild the
> kernel

   This will hopefully save others some banging-of-head-against-wall

 - dosbox requires sdl
 - sdl has the option of being compiled with, or without, svgalib support
 - svgalib bangs away directly at the hardare, which requires root-level
   permission.
 - if sdl is compiled with svgalib linked in, any program using sdl
   (dosbox or mplayer or whatever) indirectly uses svgalib, and
   therefore must be run setuid root (potential security risk, frowned on
   in linux)
 - if sdl is compiled *WITHOUT* linkage to svgalib, I find I don't have
   to screw around with loading svgalib_helper and chmod /dev/console
   and setuid dosbox as root.  As an extra bonus, mplayer runs "-vo sdl"
   without having to go through that same hassle that Dosbox required
   with svgalib.

   The magic line to include in /var/portage/package.use is...

media-libs/libsdl X -svga

if you're using X.  For framebuffer users, substitute the appropriate
framebuffer flag in place of X.

-- 
Walter Dnes <[EMAIL PROTECTED]>
My musings on technology and security at http://tech_sec.blog.ca
-- 
[email protected] mailing list

Reply via email to