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
Updated by Victor Julien almost 15 years ago
- Due date set to 03/13/2010
- Target version changed from 0.8.1 to 0.8.2
- Estimated time set to 1.00 h
Updated by Gurvinder Singh almost 15 years ago
- File 0001-bug-102.patch 0001-bug-102.patch added
- Status changed from New to Resolved
- Assignee changed from OISF Dev to Gurvinder Singh
The patch has been attached, which fixes the above issue.
Updated by Victor Julien over 14 years ago
- Status changed from Resolved to Closed
- % Done changed from 0 to 100
Applied, thanks Gurvinder.