[-]
[+]
|
Changed |
barnyard2.changes
|
|
[-]
[+]
|
Changed |
barnyard2.spec
^
|
|
[-]
[+]
|
Added |
barnyard2-config.patch
^
|
@@ -0,0 +1,11 @@
+--- etc/barnyard2.conf.orig 2012-05-12 17:01:12.364616819 +0200
++++ etc/barnyard2.conf 2012-05-12 17:54:07.493267242 +0200
+@@ -29,7 +29,7 @@
+ config reference_file: /etc/snort/reference.config
+ config classification_file: /etc/snort/classification.config
+ config gen_file: /etc/snort/gen-msg.map
+-config sid_file: /etc/snort/sid-msg.map
++config sid_file: /etc/snort/rules/sid-msg.map
+
+ # define dedicated references similar to that of snort.
+ #
|
[-]
[+]
|
Changed |
barnyard2-rh.init
^
|
@@ -36,7 +36,9 @@
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"
+ mkdir -p ${ARCHIVEDIR} `dirname ${WALDO_FILE}`
+ chown -R ${UID}:${GID} ${ARCHIVEDIR} `dirname ${WALDO_FILE}
+ BARNYARD_OPTS="-D -c $CONF -d ${SNORTDIR}/${INT} -w $WALDO_FILE -a $ARCHIVEDIR -f $LOG_FILE -X $PIDFILE $EXTRA_ARGS"
daemon $prog $BARNYARD_OPTS
done
RETVAL=$?
|
[-]
[+]
|
Changed |
barnyard2-suse.init
^
|
@@ -48,7 +48,9 @@
for INT in ${INTERFACES} ; do
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}"
+ mkdir -p ${ARCHIVEDIR} `dirname ${WALDO_FILE}`
+ chown -R ${UID}:${GID} ${ARCHIVEDIR} `dirname ${WALDO_FILE}`
+ BARNYARD_OPTS="-D -c ${CONF} -d ${SNORTDIR}/${INT} -w ${WALDO_FILE} -a ${ARCHIVEDIR} -f ${LOG_FILE} -X ${PIDFILE} ${EXTRA_ARGS}"
/sbin/startproc $barnyard2_BIN ${BARNYARD_OPTS}
done
# Remember status and be verbose
|
[-]
[+]
|
Changed |
barnyard2.sysconfig
^
|
@@ -1,11 +1,14 @@
# Config file for /etc/init.d/barnyard2
-LOG_FILE="snort_unified.log"
+LOG_FILE="/var/log/snort/snort_unified.log"
# You probably don't want to change this, but in case you do
SNORTDIR="/var/log/snort"
INTERFACES="eth0"
# Probably not this either
-CONF=/etc/snort/barnyard.conf
+CONF=/etc/snort/barnyard2.conf
EXTRA_ARGS=""
+
+UID="snort"
+GID="snort"
|