Re: write protecting syslog

From: Mike Stilson (mike@velgarian.sytes.net)
Date: 02/25/02


On Mon, Feb 25, 2002 at 11:35:00PM +0100, paolo greco wrote:
>From: "George Greer" <greerga@circlemud.org>
>> That's because when you run 'autorun' as root it rotates the logs. So
>Maybe it would help to set a little check on userid...

That would be a good idea.  VERY early in the code we could have
something like:
assert((getuid() != 0) && (geteuid() != 0));

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/25/03 PDT