freebsd-skq/etc/periodic/security
jlh 2194a6603d Make the period of each periodic security script configurable.
There are now six additional variables
  weekly_status_security_enable
  weekly_status_security_inline
  weekly_status_security_output
  monthly_status_security_enable
  monthly_status_security_inline
  monthly_status_security_output
alongside their existing daily counterparts.  They all have the same
default values.

All other "daily_status_security_${scriptname}_${whatever}"
variables have been renamed to "security_status_${name}_${whatever}".
A compatibility shim has been introduced for the old variable names,
which we will be able to remove in 11.0-RELEASE.

"security_status_${name}_enable" is still a boolean but a new
"security_status_${name}_period" allows to define the period of
each script.  The value is one of "daily" (the default for backward
compatibility), "weekly", "monthly" and "NO".

Note that when the security periodic scripts are run directly from
crontab(5) (as opposed to being called by daily or weekly periodic
scripts), they will run unless the test is explicitely disabled with a
"NO", either for in the "_enable" or the "_period" variable.

When the security output is not inlined, the mail subject has been
changed from "$host $arg run output" to "$host $arg $period run output".
For instance:
  myfbsd security run output ->  myfbsd security daily run output
I don't think this is considered as a stable API, but feel free to
correct me if I'm wrong.

Finally, I will rearrange periodic.conf(5) and default/periodic.conf
to put the security options in their own section.  I left them in
place for this commit to make reviewing easier.

Reviewed by:	hackers@
2013-08-27 21:20:28 +00:00
..
100.chksetuid Make the period of each periodic security script configurable. 2013-08-27 21:20:28 +00:00
110.neggrpperm Make the period of each periodic security script configurable. 2013-08-27 21:20:28 +00:00
200.chkmounts Make the period of each periodic security script configurable. 2013-08-27 21:20:28 +00:00
300.chkuid0 Make the period of each periodic security script configurable. 2013-08-27 21:20:28 +00:00
400.passwdless Make the period of each periodic security script configurable. 2013-08-27 21:20:28 +00:00
410.logincheck Make the period of each periodic security script configurable. 2013-08-27 21:20:28 +00:00
460.chkportsum Make the period of each periodic security script configurable. 2013-08-27 21:20:28 +00:00
500.ipfwdenied Make the period of each periodic security script configurable. 2013-08-27 21:20:28 +00:00
510.ipfdenied Make the period of each periodic security script configurable. 2013-08-27 21:20:28 +00:00
520.pfdenied Make the period of each periodic security script configurable. 2013-08-27 21:20:28 +00:00
550.ipfwlimit Make the period of each periodic security script configurable. 2013-08-27 21:20:28 +00:00
610.ipf6denied Make the period of each periodic security script configurable. 2013-08-27 21:20:28 +00:00
700.kernelmsg Make the period of each periodic security script configurable. 2013-08-27 21:20:28 +00:00
800.loginfail Make the period of each periodic security script configurable. 2013-08-27 21:20:28 +00:00
900.tcpwrap Make the period of each periodic security script configurable. 2013-08-27 21:20:28 +00:00
Makefile Hook the 220.backup-pkgdb script I added to the build unconditionally 2011-03-27 03:06:58 +00:00
security.functions Make the period of each periodic security script configurable. 2013-08-27 21:20:28 +00:00