Changeset 60

Show
Ignore:
Timestamp:
04/21/08 02:46:09 (10 years ago)
Author:
rmcmillen
Message:

Addresses Ticket #38. Added changes to ensure a new sid-msg.map file is created and loaded when rules are changed or added.

Location:
honeywall/trunk/rpm-devel/roo-base
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • honeywall/trunk/rpm-devel/roo-base/roo-base.spec

    r57 r60  
    2424# Version follows CentOS version so yum $releasever works 
    2525Version: 5 
    26 Release: 27.hw 
     26Release: 28.hw 
    2727License: GPL 
    2828Source: %{name}-%{version}.tar.gz 
     
    3939Provides: redhat-release 
    4040Requires: coreutils sysklogd sudo mktemp sed grep initscripts grub crontabs 
    41 Requires: snort snortrules-snapshot kernel selinux-policy 
     41Requires: snort snortrules-snapshot kernel selinux-policy oinkmaster 
    4242Requires(post): /sbin/chkconfig 
    4343Requires(post): /usr/sbin/useradd 
  • honeywall/trunk/rpm-devel/roo-base/src/hw/sbin/hwruleupdate

    r58 r60  
    189189# Rules changed, updates came in (or sombody is messing with us) 
    190190        RULE_CHANGE="YUP" 
     191        ##create new sid-msg.map 
     192        /usr/bin/create-sidmap.pl ${SNORT_RD} > ${SNORT_RD}/sid-msg.map 
     193        ##Upload new sid-msg.map to db 
     194        /etc/init.d/hw-mysqld load_snort_sigs >> ${LOG} 2>&1 
    191195else 
    192196# No rules changed, no updates... 
     
    229233# Rules changed, updates came in (or sombody is messing with us) 
    230234        RULE_CHANGE="YUP" 
     235        ##create new sid-msg.map 
     236        /usr/bin/create-sidmap.pl ${SNORT_RD} > ${SNORT_RD}/sid-msg.map 
     237        ##Upload new sid-msg.map to db 
     238        /etc/init.d/hw-mysqld load_snort_sigs >> ${LOG} 2>&1 
    231239else 
    232240# No rules changed, no updates...