[SDL] faster way?

Vaclav Slavik slavik2 at czn.cz
Tue Aug 17 01:17:14 PDT 1999


Warren Downs wrote:

>      If the program is going to be running on a single-user home machine
>      (as most games do), security isn't such a great concern.  In this
>      case, you can provide an install program that makes the game
>      executable suid root (giving appropriate warning to the user).  Of
>      course, the install itself must be run as root, but that's normal for
>      installing shared binaries.  You can have your installer detect if
>      it's not run as root, and in that case, warn the user that they won't
>      get the increased performance of DGA unless they manually make the
>      game binary suid root.

Except security issues, running as suid root has one more disadvantage : meaning of
$HOME changes so if your game saves something  e.g. in ~/.mygame it will be saved
in root's home directory :-(







More information about the SDL mailing list