Effective, Real and Group id switching for daemons
From: John Hanna (jhanna@cproject.com)
Date: 01/24/03
- Previous message: Valdis.Kletnieks@vt.edu: "Re: PGP scripting..."
- Next in thread: lists@notatla.demon.co.uk: "Re: Effective, Real and Group id switching for daemons"
- Maybe reply: lists@notatla.demon.co.uk: "Re: Effective, Real and Group id switching for daemons"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "John Hanna" <jhanna@cproject.com> To: <secprog@securityfocus.com> Date: Fri, 24 Jan 2003 15:19:22 -0700
I'm working to improve ASSP's support for *nix environments. (ASSP,
http://assp.sourceforge.net, is an anti-spam smtp proxy written in Perl.)
One of the important features is to be able to run as non-root after we
start listening on port 25. I had a couple of questions for those wiser than
I.
First is it important to switch the real uid as well? It might be nice to
preserve the real uid so I can switch back to root if they kill -HUP and I
need to switch ports. But in the event of a perl-based vulnerability and I
changed the effective-uid but not real-uid I suppose the clever hacker would
switch the effective-uid back if possible. So I probably need to do that,
right?
Secondly do I need to give the option to switch effective and real group id
as well? I suppose root group might be able to do something a hacker
shouldn't, even after they've lost root euid, right?
Finally, this code has to have been written 1000 times, but I couldn't find
it anywhere. Can someone point me to an opensource perl server daemon that I
can swipe code from? Or perhaps email me their prized nuget from their own
project with permission to recycle?
Thanks tons,
John
- Next message: Valdis.Kletnieks@vt.edu: "Re: Standards for developing secure software"
- Previous message: Valdis.Kletnieks@vt.edu: "Re: PGP scripting..."
- Next in thread: lists@notatla.demon.co.uk: "Re: Effective, Real and Group id switching for daemons"
- Maybe reply: lists@notatla.demon.co.uk: "Re: Effective, Real and Group id switching for daemons"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|