Project

General

Profile

Actions

Bug #102

closed

engine seg faults if user has no permissions to write to /var/log/suricata

Added by Anoop Saldanha about 14 years ago. Updated about 14 years ago.

Status:
Closed
Priority:
Normal
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

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

0001-bug-102.patch (3.51 KB) 0001-bug-102.patch Gurvinder Singh, 03/02/2010 12:48 AM
Actions #1

Updated by Victor Julien about 14 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
Actions #2

Updated by Gurvinder Singh about 14 years ago

The patch has been attached, which fixes the above issue.

Actions #3

Updated by Victor Julien about 14 years ago

  • Status changed from Resolved to Closed
  • % Done changed from 0 to 100

Applied, thanks Gurvinder.

Actions

Also available in: Atom PDF