Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

Help me #261

Open
wants to merge 81 commits into
base: dev-next
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
163caf6
Minor bugfix and improvement
binf Sep 25, 2012
8de8124
Version 2-1.11
binf Oct 24, 2012
ae7c627
updated: platypus plugin renamed to echidna and aligned to the new co…
Nov 4, 2012
6820076
fixed: add revision param to signature retrieval.
Nov 4, 2012
68e6369
Update spec file (see Feb 2 2012 spec changelog)
Feb 2, 2012
3848976
Fix staged installs - use DESTDIR.
jasonish Oct 19, 2012
a14d84e
Added a .gitignore file.
froschi Oct 25, 2012
701ccc1
Update Sguil output plugin (spo_sguil.c) to pull ip information from …
bradvoth Sep 24, 2012
08c67b1
Add code to check return value from unlink()
dogbert2 Oct 10, 2012
c571f09
alert_unixsock: Allow the path to be configured. Move the configurati…
kleptog Mar 10, 2012
55bad05
alert_unixsock: Get rid of global alertaddr by connecting to the sock…
kleptog Mar 10, 2012
de341c4
alert_unixsock: Improve some error messages so it's clear which modul…
kleptog Mar 10, 2012
ff1d027
alert_unixsock: Add a sync mode, which requires the remote end to
kleptog Mar 10, 2012
f6928e9
fixed: conflict when cherry picking #51
binf Oct 24, 2012
4094508
updated: echidna plugin now supports hashes for event and session cor…
Nov 9, 2012
5207c16
Add: Added call to PQPing in dbConnectionStatusPOSTGRESQL().
binf Nov 15, 2012
60979bf
fixed: typo on destination ip addresses.
Nov 27, 2012
61e4e6c
Merge pull request #55 from binf/PQPing_TEST
Nov 28, 2012
03fa1b8
updated: moved hard prints to debug wrapped prints.
Nov 29, 2012
4dfdc80
updated: bumped additional version tags for 2-1.11.
Nov 30, 2012
898d8a3
sguil: fix recursive calling of SguilSensorAgentInit leading to stack…
victorjulien Dec 3, 2012
db5a2b7
Test for PQping by attempted to link it.
jasonish Dec 5, 2012
722737a
Bumped: build to 318
binf Dec 28, 2012
fec25ae
Merge pull request #56 from inliniac/sguil-timeout-fix
Jan 18, 2013
07174fc
Merge pull request #58 from jasonish/ish/pqping
Jan 18, 2013
f57e464
Merge pull request #61 from binf/bug-fix
Jan 18, 2013
1e55588
Fix: Possible segfault in spo_database
binf Feb 4, 2013
d21c7ee
Fix a segfault in TextLog_Print() by using %d for classification ID, …
reedloden Feb 5, 2013
e3d8048
Add: Enable payload encoding for log_syslog_full in complete mode,
binf Feb 7, 2013
0fb21ae
Merge pull request #67 from binf/bug-fix
Feb 7, 2013
dfc81fa
Merge pull request #68 from reedloden/master
Feb 7, 2013
0d5ad30
updated: bumped licensing for the new year as well as minor revision …
Feb 14, 2013
dae9a58
Bumped: version to 2-1.13-BETA
binf Mar 13, 2013
f764921
Last minute commit for a long waited needed feature and some little fix.
binf Apr 26, 2013
5f4afa7
fixed: libwebsocket update collapsed a number of arguments into gener…
May 7, 2013
e530fa7
updated: build bump and removal of beta tag pending release.
May 7, 2013
b10ea25
fixed: range logic was inadvertenly inverted.
May 9, 2013
c256720
fixed: lingering reference identifid during HUP operations.
May 9, 2013
f1c5e2d
added: handle situations where map files are not v2.
May 9, 2013
ba0ae7b
fixed: issue with signature insertion and v1/v2 sid-msg.map handling.
May 14, 2013
a4ac333
fix: possible double free's on cleanup when HUP recieved.
May 24, 2013
272eaf7
Fix: little issue when starting in SIDv2 mode, mainly due to a early
binf May 25, 2013
36f3466
Fix: build error when --enable-debug was specified.
binf Jun 17, 2013
c87d11f
Fix: Removed loop control continue in ReadSidMap()
binf Jun 19, 2013
44bdf84
Fix: Forgotten select access for the schema table in the SCHEMA_ACCESS
binf Jun 20, 2013
532ba4d
2-1.13 Release fixes,
binf Aug 24, 2013
3bfa984
updated: modernised automake config to produce less warning spew.
firnsy Nov 1, 2014
57d200d
fixed: strndup does not exist on solaris. fixes #98
firnsy Nov 3, 2014
601a57f
Fixed an improperly capitalized command line argument in the rpm init…
bjornsen Aug 28, 2013
81f22ee
Added conditional schema packaging based on database selection options.
bjornsen Aug 28, 2013
dd5b221
Changed Source0 name, added BuildRequires libtool, created snort dire…
bjornsen Aug 28, 2013
8dcbeb4
fix: bny conf file name updated to barnyard2.conf
shredder12 Jan 25, 2014
d2e19cd
Fix a potential segfault in spo_syslog when p->iph == NULL
topnotcher May 13, 2014
51df47b
cosmetic: spell check.
firnsy Nov 3, 2014
0c371b7
fixed: sockaddr struct requires <sys/socket.h> on solaris. fixes #97.
firnsy Nov 3, 2014
593e1f3
fixed: neither LOG_AUTHPRIV or LOG_FTP are defined in Solaris. fixes …
firnsy Nov 5, 2014
2ed7e01
fixed: compiler warning missing stdlib header for free declaration. f…
firnsy Nov 5, 2014
dbcc853
updated: aligned structs to help SPARC64 memory alignment and 64-bit …
firnsy Nov 5, 2014
679e2c0
SSL Cipher not being populated from configuration
Nov 7, 2014
4a4a05c
updated: aligned snort includes to latest upstream.
firnsy Dec 17, 2014
2d209b9
fixed: removed rogue semi-colon. fixes #128.
firnsy Dec 18, 2014
ce3c022
fixed: incorrect padding in sguild for events without packets.
firnsy Jan 22, 2015
0e3df2d
Fix: Issue where the spooler would reuse wrongly cached event, found
binf Mar 4, 2015
40b046d
fixed: mem allocation issue (ie not being done) with IPv6 extension p…
firnsy Mar 4, 2015
030b6a1
Add a way to set Prelude Analyzer name, model and manufacturer.
Schnaffon May 6, 2015
c1b5187
Fix: Syslog Facility and Priority for remote messages. (thanks to Mike
binf Jun 2, 2015
0a87188
spo_syslog_full bugfix
cscogrady Oct 13, 2015
5172553
Increment the version in the spec file.
pecastro Oct 13, 2015
5fe94d3
Correct typo in list of files.
pecastro Oct 13, 2015
a32c162
Comment this sed section which is borking the CFLAGS and generating t…
pecastro Oct 13, 2015
40ed33a
Add missing source file to list of files to include in the dist
pecastro Oct 13, 2015
fc95b82
Merge pull request #163 from colingrady/bugfixes
firnsy Oct 21, 2015
7254c24
Merge pull request #164 from pecastro/master
firnsy Oct 21, 2015
a640bc0
Missing dnet-devel dependency
cvandeplas Mar 18, 2016
da21540
mariadb fix for ref_system_id
Apr 12, 2016
d0afc34
Merge pull request #186 from borysn/master
firnsy Apr 13, 2016
597c4e4
Merge pull request #150 from binf/syslog-facpri-fix
firnsy Apr 13, 2016
6968679
Merge pull request #125 from sheenobu/bugfix/ssl_cipher
firnsy Apr 13, 2016
2f48f3c
Merge pull request #146 from Schnaffon/master
firnsy Apr 13, 2016
f9186f2
Merge pull request #183 from cvandeplas/master
firnsy Apr 13, 2016
6387bf6
Update README
firnsy Jan 18, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
24 changes: 24 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
*~
*.o
aclocal.m4
autom4te.cache/
cflags.out
/config.*
configure
cppflags.out
install-sh
libtool
ltmain.sh
m4/libtool.m4
m4/lt~obsolete.m4
m4/ltoptions.m4
m4/ltsugar.m4
m4/ltversion.m4
Makefile
Makefile.in
missing
src/barnyard2
src/input-plugins/libspi.a
src/output-plugins/libspo.a
src/sfutil/libsfutil.a
stamp-h1
2 changes: 1 addition & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ ACLOCAL_AMFLAGS = -I m4

SUBDIRS = src etc doc rpm schemas m4

INCLUDES = @INCLUDES@
AM_CPPFLAGS = @INCLUDES@

EXTRA_DIST = COPYING LICENSE README RELEASE.NOTES ltmain.sh autogen.sh
12 changes: 6 additions & 6 deletions README
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
It's been a minute, sadly I this project has not seen any love in nearly a
decade and it's probably time to put it out to pasture. Thanks for the
memories <3


------------------------------------------------------------------------------
0. SUMMARY
------------------------------------------------------------------------------

Barnyard2 - version 2-1.10
Barnyard2 - version 2-1.14

This README contains some quick information about how to set up and
configure barnyard2 to ensure it works as it should.

Distribution Site:
http://www.securixlive.com/barnyard2


------------------------------------------------------------------------------
1. COPYRIGHT
------------------------------------------------------------------------------

Copyright (C)2008-2012 Ian Firns <firnsy@securixlive.com>
Copyright (C)2008-2013 Ian Firns <firnsy@securixlive.com>
Copyright (C)2008-2010 SecurixLive <dev@securixlive.com>

This program is free software; you can redistribute it and/or modify
Expand Down Expand Up @@ -156,4 +157,3 @@ Examples:
2. Using barnyard2 in batch mode

# ./barnyard2 -c /etc/barnyard2.conf -o file1.u2 file2.u2 file3.u2

22 changes: 22 additions & 0 deletions RELEASE.NOTES
Original file line number Diff line number Diff line change
@@ -1,3 +1,25 @@
2013-02-15 - Barnyard 2.1.12
[*] Improvements
* spo_syslog_full. Added both ascii and base64 support.

* spo_database. Many tweaks and fixes.

* Fixed PQping detection on build.

2012-11-29 - Barnyard 2.1.11
[*] Improvements
* spo_database. Keep-alive (via ping) for postgresql databases.

* Updated RPM spec file to support alternative pcap libraries and cleaned
some existing cruft. Thanks to Brent Woodruff.

* spo_alert_unixsock. Supports synchronisation, multiple connections and
improved error reporting. Thanks to Martijn van Oosterhaut.

* Many other general bug fixes and clean ups. Thanks to Jason Ish,
Thorsten Fischer, Brad Voth and Bill Parker.


2012-10-24 - Barnyard 2.1.10
[*] Additions
* spo_database. Support of encrypted connections to postgresql is now
Expand Down
3 changes: 2 additions & 1 deletion autogen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ else
echo "Failed to find libtoolize or glibtoolize, please ensure it is installed and accessible via your PATH env variable"
exit 1
fi;
autoreconf -fv --install
#autoreconf -fv --install
autoreconf -fvi
echo "You can now run \"./configure\" and then \"make\"."
46 changes: 34 additions & 12 deletions configure.in → configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
# Process this file with autoconf to produce a configure script.

AC_PREREQ(2.50)
AC_INIT(src/barnyard2.c)
AC_INIT([barnyard2], [1.14])
AC_CONFIG_SRCDIR([src/barnyard2.c])
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE(barnyard2,1.10)
AM_INIT_AUTOMAKE
AC_CONFIG_MACRO_DIR([m4])

LT_INIT
Expand All @@ -15,10 +16,10 @@ ADD_WERROR="no"
# Test for -Werror and sed it out for now since some of the auto tests,
# for example AC_CHECK_LIB, will fail because of
# warning: conflicting types for built-in function <func>
if eval "echo $CFLAGS | grep -e -Werror"; then
CFLAGS=`echo $CFLAGS | sed -e "s/-Werror//g"`
ADD_WERROR="yes"
fi
#if eval "echo $CFLAGS | grep -e -Werror"; then
# CFLAGS=`echo $CFLAGS | sed -e "s/-Werror//g"`
# ADD_WERROR="yes"
#fi

# Disable annoying practice of recursively re-running the autotools
AM_MAINTAINER_MODE
Expand Down Expand Up @@ -815,7 +816,8 @@ if test "x$with_postgresql" != "xno"; then
postgresql_fail="no"
fi

AC_MSG_CHECKING(for postgresql)

AC_MSG_CHECKING([for postgresql])

if test "x$with_pgsql_includes" != "xno"; then
for i in $with_pgsql_includes $postgresql_directory; do
Expand Down Expand Up @@ -861,6 +863,7 @@ if test "x$with_postgresql" != "xno"; then
fi
fi


if test -z "$POSTGRESQL_DIR"; then
for dir in $postgresql_directory; do
for i in "lib" "lib/pgsql"; do
Expand Down Expand Up @@ -898,6 +901,10 @@ if test "x$with_postgresql" != "xno"; then
exit 1
fi
fi

AC_CHECK_FUNC([PQping], [AC_DEFINE([HAVE_PQPING], [1],
[Define if PQping exists.])])

fi

AC_ARG_WITH(oracle,
Expand Down Expand Up @@ -1035,6 +1042,21 @@ if test "$with_tcl" != "no"; then
fi
fi

#
# OUTPUT PLUGIN - ECHIDNA

AC_ARG_ENABLE(plugin-echidna,
[ --enable-plugin-echidna Enable echidna plugin (experimental)],
enable_plugin_echidna="$enableval", enable_plugin_echidna="no")
if test "x$enable_plugin_echidna" = "xyes"; then
AC_CHECK_LIB([crypto], [SHA256_Init], [], [AC_MSG_ERROR([SHA256_Init was not found in libcrypto])])
AC_CHECK_LIB([curl], [curl_easy_setopt], [], [AC_MSG_ERROR([curl_easy_setopt was not found in libcurl])])
AC_CHECK_LIB([websockets], [libwebsocket_create_context], [], [AC_MSG_ERROR([libwebsocket_create_context was not found in libwebsockets])])
AC_CHECK_LIB([json], [json_tokener_parse], [], [AC_MSG_ERROR([json_tokener_parse was not found in libjson])])

CPPFLAGS="$CPPFLAGS -DENABLE_PLUGIN_ECHIDNA"
LIBS="$LIBS -lwebsockets -ljson -lcurl -lcrypto"
fi


# let's make some fixes..
Expand Down Expand Up @@ -1093,9 +1115,9 @@ fi
echo $CFLAGS > cflags.out
echo $CPPFLAGS > cppflags.out

INCLUDES='-I$(top_srcdir) -I$(top_srcdir)/src -I$(top_srcdir)/src/sfutil $(extra_incl) -I$(top_srcdir)/src/output-plugins -I$(top_srcdir)/src/input-plugins'
AM_CPPFLAGS='-I$(top_srcdir) -I$(top_srcdir)/src -I$(top_srcdir)/src/sfutil $(extra_incl) -I$(top_srcdir)/src/output-plugins -I$(top_srcdir)/src/input-plugins'

AC_SUBST(INCLUDES)
AC_SUBST(AM_CPPFLAGS)

AC_PROG_INSTALL
AC_CONFIG_FILES([ \
Expand All @@ -1119,15 +1141,15 @@ cat <<EOF

The MySQL client version you are using does not by default reconnect to the
server if the connection is lost and does not have the option to configure
this for the client. Snort, for security reasons, erases the connection
this for the client. Barnyard2, for security reasons, erases the connection
password from memory, so it cannot explicity reconnect at runtime. Please
update your version of MySQL to 5.0.13 or greater or you risk connections
timing out because of inactivity resulting in the inablilty of Snort to write
timing out because of inactivity resulting in the inablilty of Barnyard2 to write
alerts to the database. If you can't upgrade, try setting the 'wait-timeout'
configuration parameter to the maximum value possible in the @<:@mysqld@:>@
section of my.cnf, e.g. wait-timeout=31536000. This should give you a good
year of inactivity before the server terminates the connection ... if your
network is this clean, you probably don't need to use Snort.
network is this clean, you probably don't need to use Barnyard2.

********************************************************************************

Expand Down
25 changes: 19 additions & 6 deletions doc/README.database
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ The database output plug-in enables snort to log to

- Postgresql,
- MySQL,
- any unixODBC database,
- MS SQL Server and
- Oracle.

# Currently unsupported.
# - any unixODBC database,
# - MS SQL Server and
# - Oracle.

This README contains some quick information about how to set up and
configure database logging with in snort. More complete and
Expand Down Expand Up @@ -34,9 +36,11 @@ working.
(unixODBC + some other RDBMS)
MySQL => http://www.mysql.org
Postgresql => http://www.postgesql.org
unixODBC => http://www.unixodbc.org
Oracle => http://www.oracle.com
SQL Server => http://www.microsoft.com

# Currently Unsupported
# unixODBC => http://www.unixodbc.org
# Oracle => http://www.oracle.com
# SQL Server => http://www.microsoft.com

2) Follow directions from your database vendor to be sure your
RDBMS is properly configured and secured.
Expand Down Expand Up @@ -207,7 +211,16 @@ Arguments:
[yes|1]: Ignore the BPF part when looking for the server
definition

connection_limit <integer>: default 10 - The maximum number of time that barnyard2 will tolerate a transaction faillure and or
database connection failure.

reconnect_sleep_time <integer> : default 5 - The number of seconds to sleep betwen connection retry.

disable_signature_reference_table - Tell the output plugin not to synchronize the sig_reference table in the schema.
This option will speedup the process, especialy if you use sid-msg.mapv2 file or
have alot of signature already in databases.
(Make sure that you do not need that information before enablign this)


MYSQL ONLY

Expand Down
64 changes: 64 additions & 0 deletions doc/README.sig_suppress
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
-=Barnyard2 Team=-
<barnyard2-users@barnyard2-users@googlegroups.com>
==================================================

Barnyard2 support event suppression at the
spooler level using the configuration directive sig_suppress.

Syntax:
=======
config sig_suppress: (GID):(SID)

Note:
GID is optional and SID can be a single SID or a range (START)-(END) (see below).

EX:
=======
config sig_suppress: 1:10
AND
config sig_suppress: 10

The above expressions ARE equivalent.

config sig_suppress: 1:10
AND
config sig_suppress: 112:10

The above expressions ARE NOT equivalent because one speficy gid 1 (alert) while the other speficy gid 112 (spp_arpspoof)

config sig_suppress: 10-40 <= RANGE
IS equivalent to
config sig_suppress: 1:10-40 <= RANGE
AND ALSO equivalent to
config sig_suppress: 10,11,12,13,14,15,16....,38,39,40

NOTE: single entries are less effective,especially if you have large lists.

As the time of this writing, if you change the list you will need to restart the process (STOP/START) and not SIGHUP
if you want the changes to be applied to event processing.

If we define the following list (overlaping entries are ignored or replaced when a range covering them is encountered):
config sig_suppress: 1:10,20,1:30,2:90-102
config sig_suppress: 1:10,1:30-40,15,10-40,25
config sig_suppress: 1:10,50-55,15,10-20,80,51-52,31-35
config sig_suppress: 2:93,2:95,2:100-101,2:91-122,22-27,2008175,2657,2011766,9900009,2001972,2101623

So with the example above the final list is the following:

+[ Signature Suppress list ]+
----------------------------
-- Element type:[RANGE ] gid:[2] sid min:[90] sid max:[122]
-- Element type:[RANGE ] gid:[1] sid min:[30] sid max:[40]
-- Element type:[RANGE ] gid:[1] sid min:[50] sid max:[55]
-- Element type:[RANGE ] gid:[1] sid min:[10] sid max:[20]
-- Element type:[SINGLE] gid:[1] sid min:[80] sid max:[80]
-- Element type:[RANGE ] gid:[1] sid min:[22] sid max:[27]
-- Element type:[SINGLE] gid:[1] sid min:[2008175] sid max:[2008175]
-- Element type:[SINGLE] gid:[1] sid min:[2657] sid max:[2657]
-- Element type:[SINGLE] gid:[1] sid min:[2011766] sid max:[2011766]
-- Element type:[SINGLE] gid:[1] sid min:[9900009] sid max:[9900009]
-- Element type:[SINGLE] gid:[1] sid min:[2001972] sid max:[2001972]
-- Element type:[SINGLE] gid:[1] sid min:[2101623] sid max:[2101623]
----------------------------
+[ Signature Suppress list ]+

6 changes: 5 additions & 1 deletion etc/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@ AUTOMAKE_OPTIONS=foreign no-dependencies
EXTRA_DIST = barnyard2.conf

install-data-am:
test -e $(sysconfdir)/barnyard2.conf || install -m 600 $(top_srcdir)/etc/barnyard2.conf $(sysconfdir)
test -e $(DESTDIR)$(sysconfdir) || \
$(mkinstalldirs) $(DESTDIR)$(sysconfdir)
test -e $(DESTDIR)$(sysconfdir)/barnyard2.conf || \
$(INSTALL_DATA) -m 600 $(top_srcdir)/etc/barnyard2.conf \
$(DESTDIR)$(sysconfdir)/barnyard2.conf
24 changes: 20 additions & 4 deletions etc/barnyard2.conf
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,18 @@ config classification_file: /etc/snort/classification.config
config gen_file: /etc/snort/gen-msg.map
config sid_file: /etc/snort/sid-msg.map


# Configure signature suppression at the spooler level see doc/README.sig_suppress
#
#
#config sig_suppress: 1:10


# Set the event cache size to defined max value before recycling of event occur.
#
#
#config event_cache_size: 4096

# define dedicated references similar to that of snort.
#
#config reference: mybugs http://www.mybugs.com/?s=
Expand Down Expand Up @@ -221,8 +233,11 @@ output alert_fast: stdout
# Purpose:
# This output module provides logging to the Prelude Hybrid IDS system
#
# Arguments: profile=snort-profile
# snort-profile - name of the Prelude profile to use (default is snort).
# Arguments:
# analyzer_name - name of the Prelude analyzer (default is snort).
# analyzer_model - model of the Prelude analyzer (default is Snort).
# analyzer_class - class of the Prelude analyzer (default is NIDS).
# analyzer_manufacturer - manufacturer of the Prelude anaylzer (default is http://www.snort.org).
#
# Snort priority to IDMEF severity mappings:
# high < medium < low < info
Expand All @@ -235,8 +250,8 @@ output alert_fast: stdout
#
# Examples:
# output alert_prelude
# output alert_prelude: profile=snort-profile-name
#
# output alert_prelude: analyzer_name=snort
# output alert_prelude: analyzer_name=sagan analyzer_model=sagan analyzer_class=Log\ Analyzer analyzer_manufacturer=http://sagan.quadrantsec.com


# alert_syslog
Expand Down Expand Up @@ -267,6 +282,7 @@ output alert_fast: stdout
# operation_mode $operaion_mode - default | complete : default mode is compatible with default snort syslog message, complete prints more information such as the raw packet (hexed)
# log_priority $log_priority - used by local option for syslog priority call. (man syslog(3) for supported options) (default: LOG_INFO)
# log_facility $log_facility - used by local option for syslog facility call. (man syslog(3) for supported options) (default: LOG_USER)
# payload_encoding - (default: hex) support hex/ascii/base64 for log_syslog_full using operation_mode complete only.

# Usage Examples:
# output alert_syslog_full: sensor_name snortIds1-eth2, server xxx.xxx.xxx.xxx, protocol udp, port 514, operation_mode default
Expand Down
2 changes: 1 addition & 1 deletion rpm/barnyard2
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ start() {
PIDFILE="/var/lock/subsys/barnyard2-$INT.pid"
ARCHIVEDIR="$SNORTDIR/$INT/archive"
WALDO_FILE="$SNORTDIR/$INT/barnyard2.waldo"
BARNYARD_OPTS="-D -c $CONF -d $SNORTDIR/${INT} -w $WALDO_FILE -L $SNORTDIR/${INT} -a $ARCHIVEDIR -f $LOG_FILE -X $PIDFILE $EXTRA_ARGS"
BARNYARD_OPTS="-D -c $CONF -d $SNORTDIR/${INT} -w $WALDO_FILE -l $SNORTDIR/${INT} -a $ARCHIVEDIR -f $LOG_FILE -X $PIDFILE $EXTRA_ARGS"
daemon $prog $BARNYARD_OPTS
done
RETVAL=$?
Expand Down