Bug #102
closedengine seg faults if user has no permissions to write to /var/log/suricata
Description
PEN] - ERROR: failed to open /var/log/suricata/fast.log: Permission denied
[30377] 19/2/2010 -- 08:44:05 - (alert-unified-log.c:388) <Error> (AlertUnifiedLogOpenFileCtx) -- [ERRCODE: SC_ERR_FOPEN(34)] - ERROR: failed to open /var/log/suricata/unified.log.1266549245: Permission denied
[New Thread 0xb7d566c0 (LWP 30377)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb7d566c0 (LWP 30377)]
0xb7db25b1 in fwrite () from /lib/libc.so.6
(gdb) bt
#0 0xb7db25b1 in fwrite () from /lib/libc.so.6
#1 0x08150b06 in AlertUnifiedLogWriteFileHeader (file_ctx=0x8846c18) at alert-unified-log.c:138
#2 0x081517e4 in AlertUnifiedLogOpenFileCtx (file_ctx=0x8846c18, prefix=0x8264c30 "unified.log")
at alert-unified-log.c:393
#3 0x0815151f in AlertUnifiedLogInitCtx (conf=0x8264b60) at alert-unified-log.c:343
#4 0x0804e51f in RunModeInitializeOutputs () at runmodes.c:92
#5 0x0804d9b9 in main (argc=5, argv=0xbfe36424) at suricata.c:814
Files