974cf2e158
This version fixes the buffer overflow issue noted in: http://www.kb.cert.org/vuls/id/916785 Changes: - follow PKG_SYSCONFDIR - added rc.d script - create own user and group - added MESSAGE with post-install instructions - removed DEINSTALL - minor cleanups (this package was really half-baked..) 1.9.1: ====== - src/preprocessors/spp_rpc_decode.c (PreprocRpcDecode): - alignment errors on non-x86 platforms - added new space delimited options alert_fragments no_alert_multiple_requests no_alert_large_fragments no_alert_incomplete - corrected buffer overflow in fragment normalization - src/snort.c - Win32 '-s' parameter wasn't configured to accept an optarg, but code expected one, causing null-pointer violation. - Backport of 2.0 fixes for stream4 ( off by one errors on reassembly )
19 lines
441 B
Bash
Executable file
19 lines
441 B
Bash
Executable file
#!/bin/sh
|
|
#
|
|
# $NetBSD: snort.sh,v 1.1 2003/03/04 01:02:26 salo Exp $
|
|
#
|
|
|
|
# PROVIDE: snort
|
|
# REQUIRE: DAEMON
|
|
|
|
. /etc/rc.subr
|
|
|
|
name="snort"
|
|
rcvar=$name
|
|
command="@PREFIX@/bin/${name}"
|
|
confdir="@PKG_SYSCONFDIR@"
|
|
required_files="$confdir/snort.conf $confdir/classification.config $confdir/reference.config"
|
|
command_args="-u @SNORT_USER@ -g @SNORT_GROUP@ -o -d -D -l /var/log/snort -c $confdir/snort.conf"
|
|
|
|
load_rc_config $name
|
|
run_rc_command "$1"
|