mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 10:19:26 +00:00
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)
This commit is contained in:
parent
0c32530bb7
commit
59583bf53c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=135591
@ -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"
|
||||
|
@ -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
|
||||
|
@ -439,6 +439,13 @@ This variable behaves in the same way as the
|
||||
.Va *_output
|
||||
variables above, namely it can be set either to one or more email addresses
|
||||
or to an absolute file name.
|
||||
.It Va daily_status_security_diff_flags
|
||||
.Pq Vt str
|
||||
Set to the arguments to pass to the
|
||||
.Xr diff 1
|
||||
utility when generating differences.
|
||||
The default is
|
||||
.Fl b Fl u .
|
||||
.It Va daily_status_security_chksetuid_enable
|
||||
.Pq Vt bool
|
||||
Set to
|
||||
@ -723,6 +730,7 @@ is shared or distributed.
|
||||
.Xr apropos 1 ,
|
||||
.Xr calendar 1 ,
|
||||
.Xr df 1 ,
|
||||
.Xr diff 1 ,
|
||||
.Xr gzip 1 ,
|
||||
.Xr locate 1 ,
|
||||
.Xr man 1 ,
|
||||
|
Loading…
Reference in New Issue
Block a user