Quoting Roberto Ugoccioni: > Denis Oliver Kropp <[EMAIL PROTECTED]> wrote: > > > > The DirectFB master application (first DirectFB process) > > needs to be setuid root for VT switching and raw keyboard input. > > > > Thanks, this was indeed the problem: I ran the same script as root and it worked. I > didn't know about this kernel's behaviour. > Now, my PC is used only by me and is seldom connected to the internet, still I'd > like to run things as root as little as possible. I made mplayer suid root (it > works). Is this the right thing? Or is there some way to enable root privileges for > the directfb subsystem (e.g. within mplayer) only?
You can write a small "directfbd" which is setuid root and just calls DirectFBInit(), DirectFBCreate() and pause(). Additional processes can be started as a normal user. -- Best regards, Denis Oliver Kropp .------------------------------------------. | DirectFB - Hardware accelerated graphics | | http://www.directfb.org/ | "------------------------------------------" Convergence GmbH -- Info: To unsubscribe send a mail to [EMAIL PROTECTED] with "unsubscribe directfb-users" as subject.
