Root required for SVGALIB??

Root required for SVGALIB??

Post by sean wal.. » Wed, 05 Mar 1997 04:00:00



I read that the user has to be root in order to use SVGALIB
(e.g. for games).  Is this true?  If so, WHY??

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Sean Walton  [don't reply directly: real username is 'swalton']
KB7rfa (Tech+)
Intelligent Algorithmic Solutions (IAS)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

 
 
 

Root required for SVGALIB??

Post by Olivier Thar » Thu, 06 Mar 1997 04:00:00




Quote:> I read that the user has to be root in order to use SVGALIB
> (e.g. for games).  Is this true?  If so, WHY??

As for Quake, it has to be setuid root in order to have access to the
CD Rom interface, the sound card and those sorts of things ; then it can
happily handle to a more casual user. That's true for SVGAlib in fact.

Try to run quake _not_ setuid root, under a normal user, and you'll see
all the startup errors and understand why it won't start.

-- olive

LSD: virtual reality without the expensive hardware.

 
 
 

Root required for SVGALIB??

Post by Hartmut Niema » Thu, 06 Mar 1997 04:00:00



>I read that the user has to be root in order to use SVGALIB
>(e.g. for games).  Is this true?  If so, WHY??
>--
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>Sean Walton  [don't reply directly: real username is 'swalton']
>KB7rfa (Tech+)
>Intelligent Algorithmic Solutions (IAS)
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The game program has to be run by root or suid root because it writes
directly to the hardware.
See
http://synergy.caltech.edu/~ggi/docs/faq.html

Hartmut.

 
 
 

Root required for SVGALIB??

Post by James Youngm » Fri, 07 Mar 1997 04:00:00



Quote:

>I read that the user has to be root in order to use SVGALIB
>(e.g. for games).  Is this true?  If so, WHY??

Because the GGI system is not finished yet [dons asbestos underwear].

--
James Youngman       VG Gas Analysis Systems  The trouble with the rat-race
Before sending advertising material, read     is, even if you win, you're
http://www.law.cornell.edu/uscode/47/227.html         still a rat.

 
 
 

Root required for SVGALIB??

Post by Jani Jaakko » Fri, 07 Mar 1997 04:00:00




Quote:> I read that the user has to be root in order to use SVGALIB
> (e.g. for games).  Is this true?  If so, WHY??

You have to be root, because only root has the privilege to access
the graphics hardware and memory map the frame buffer. In Linux
you have to be root to directly access any hardware.

I think that this should be changed, but personally i don't have
the time to do it. Look for the CGI project.

--

------          http://www.cs.helsinki.fi/~jjaakkol          ------

 
 
 

Root required for SVGALIB??

Post by tafer.. » Fri, 07 Mar 1997 04:00:00





> > I read that the user has to be root in order to use SVGALIB
> > (e.g. for games).  Is this true?  If so, WHY??

> You have to be root, because only root has the privilege to access
> the graphics hardware and memory map the frame buffer. In Linux
> you have to be root to directly access any hardware.

I played around with the privileges of /dev/console, made it a+rw,
but it did not help much. At least it helped for some games and
for others not (can't remember which ones).
Seems as if some games test the user they are running and complain
before they try to open the screen (what is possible if they
are allowed to write to /dev/console - some games worked with
it).

I also want to be able to start SVGA applications from within X.
At the moment I am often required to switch to a text-console. Very
annoying. That's why I avoid using SVGA-lib based applications.

Quote:> I think that this should be changed, but personally i don't have
> the time to do it. Look for the CGI project.

You mean GGI.

--Stefan

 
 
 

Root required for SVGALIB??

Post by Mark Tarraba » Fri, 07 Mar 1997 04:00:00


Personally, this fact has always bothered me to no end.   I'd much rather have
the portions of svgalib which require direct access to the hardware implemented
in a client-server sort of fashion.  Then programs which are graphic can be
owned by the games user, which is the way it should be.

Quote:>> Mark

 
 
 

Root required for SVGALIB??

Post by Stephen Knila » Sat, 08 Mar 1997 04:00:00





>> I read that the user has to be root in order to use SVGALIB
>> (e.g. for games).  Is this true?  If so, WHY??

>You have to be root, because only root has the privilege to access
>the graphics hardware and memory map the frame buffer. In Linux
>you have to be root to directly access any hardware.

>I think that this should be changed, but personally i don't have
>the time to do it. Look for the CGI project.

WHY should it be changed?  Anyone that has access, has access!  If it is access
to the screen memory, you lose security!