More tripwire fixes
This commit is contained in:
parent
969275ecd3
commit
7f6c40a2c3
|
@ -8045,6 +8045,12 @@ function intrusion_detection {
|
|||
sed -i 's|/proc.*||g' /etc/tripwire/twpol.txt
|
||||
# Don't report log changes
|
||||
sed -i 's|/var/log.*||g' /etc/tripwire/twpol.txt
|
||||
# Ignore /etc/tripwire
|
||||
if ! grep -q "!/etc/tripwire" /etc/tripwire/twpol.txt; then
|
||||
sed -i '\|/etc\t\t->.*|a\ !/etc/tripwire;' /etc/tripwire/twpol.txt
|
||||
fi
|
||||
# Avoid logging the changed database
|
||||
sed -i 's|$(TWETC)/tw.pol.*||g' /etc/tripwire/twpol.txt
|
||||
reset-tripwire
|
||||
|
||||
echo 'intrusion_detection' >> $COMPLETION_FILE
|
||||
|
|
Loading…
Reference in New Issue