diff options
author | jkoshy <jkoshy@FreeBSD.org> | 2004-09-23 02:00:52 +0000 |
---|---|---|
committer | jkoshy <jkoshy@FreeBSD.org> | 2004-09-23 02:00:52 +0000 |
commit | e73862471d64845100a003fb14d6d4e73ef25a6b (patch) | |
tree | e0ec6f772bd81e792d8777fe8e3228985b068311 /etc | |
parent | b9f196b2c46698e391410e2bf587cb7714cee9b5 (diff) | |
download | FreeBSD-src-e73862471d64845100a003fb14d6d4e73ef25a6b.zip FreeBSD-src-e73862471d64845100a003fb14d6d4e73ef25a6b.tar.gz |
Add a knob 'daily_status_security_diff_flags' controlling the
format of the 'diff' output generated during periodic(8) scripts.
Submitted by: keramida (script changes)
Reviewed by: keramida (man page changes)
Diffstat (limited to 'etc')
-rw-r--r-- | etc/defaults/periodic.conf | 1 | ||||
-rw-r--r-- | etc/periodic/security/security.functions | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/etc/defaults/periodic.conf b/etc/defaults/periodic.conf index 682692d..85f2ee7 100644 --- a/etc/defaults/periodic.conf +++ b/etc/defaults/periodic.conf @@ -128,6 +128,7 @@ daily_status_security_inline="NO" # Run inline ? daily_status_security_output="root" # user or /file daily_status_security_noamd="NO" # Don't check amd mounts daily_status_security_logdir="/var/log" # Directory for logs +daily_status_security_diff_flags="-b -u" # flags for diff output # 100.chksetuid daily_status_security_chksetuid_enable="YES" diff --git a/etc/periodic/security/security.functions b/etc/periodic/security/security.functions index 29c61aa..c5aa3c3 100644 --- a/etc/periodic/security/security.functions +++ b/etc/periodic/security/security.functions @@ -67,7 +67,8 @@ check_diff() { [ $rc -lt 1 ] && rc=1 echo "" echo "${msg}" - diff -b ${LOG}/${label}.today ${tmpf} | eval "${filter}" + diff ${daily_status_security_diff_flags} ${LOG}/${label}.today \ + ${tmpf} | eval "${filter}" mv ${LOG}/${label}.today ${LOG}/${label}.yesterday || rc=3 mv ${tmpf} ${LOG}/${label}.today || rc=3 fi |