Unix Programming - Re: Any standard way to fork and exec something that isn't in a

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > June 2005 > Re: Any standard way to fork and exec something that isn't in a





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: Any standard way to fork and exec something that isn't in a
Matthias Buelow

2005-06-27, 5:53 pm

Peter Seibel <peter@gigamonkeys.com> writes:

>But the key phrase here is "as long as the process is running". I may
>be okay with someone with sufficient privileges logged into the box
>while the program is run being able to see what's going on while still
>wanting to hide it from someone who comes along later, after the
>program has run.


Also make sure to getrlimit() RLIMIT_CORE to 0 in your program startup
and/or to catch all coredumping signals, otherwise that someone might
set up a cronjob that'll just kill your process, and grab the corefile
for later inspection (although I'm not sure if that can also be
achieved by copying the respective entry from /proc. Is there no way
to restrict this? I mean, there should be, or else /proc could be
considered a mild security problem and it would probably be wise not
to mount it).

mkb.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com