[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Running part of the code with superuser privileges
From:       Harri Porten <porten () froglogic ! com>
Date:       2006-05-28 20:26:16
Message-ID: Pine.LNX.4.64.0605282224170.19226 () pudel ! froglogic ! com
[Download RAW message or body]

On Sun, 28 May 2006, Albert Astals Cid wrote:

> Well, kppp is setuid root AFAIK
> IIRC what it does is:
> * fork a process that does the privileged work
> * drop privileges
> * create the KApplication
>
> But you can have a more real description looking at its sources :D

Your description is correct but I wouldn't go that route again in 
hindsight. Just too much to watch out for all the time and always bears 
the potential for problems.

I'd really go for seperate programs where the GUI communicates with the 
backend through stdin/stdout or whatever.

Harri.
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic