SVN #133 commit

0 views
Skip to first unread message

Da Beave

unread,
Jun 3, 2011, 11:20:31 PM6/3/11
to sagan-dev
Big thanks to Drforbin. Took care of some problems.

Removed SAGANLOG and SAGANLOGPATH from the configuration files. This
was also remove from the code. Move logging function to a command
line are (-l/--log). This makes dealing with the sagan.log a lot
easier.

Drforbin noticed some issues with the _SaganCounters which would cause
various strange things with the statistics. This was cause by a
improper initialization of memory. Basically, memset was being
called before malloc. This can lead to heap problems. Re-arranged
to malloc _then_ memset.

Da Beave

unread,
Jun 4, 2011, 12:25:17 AM6/4/11
to sagan-dev

Drforbin noticed Sagan seg faulted when run as a non-root
(non-uid 0) users. This was cause by non-uid 0 users calling
setuid/setgid along with a chown() to the sagan FIFO.

When run as a non-root user, we now bypass all these functions
and let Sagan run as the current user. This eliminates the segfaults
and allows Sagan to start/run under a non-root account.

--
Champ Clark III | Softwink, Inc | 800-538-9357 x 101
http://www.softwink.com

GPG Key ID: 58A2A58F
Key fingerprint = 7734 2A1C 007D 581E BDF7 6AD5 0F1F 655F 58A2 A58F
If it wasn't for C, we'd be using BASI, PASAL and OBOL.

Reply all
Reply to author
Forward
0 new messages