On Sat, 2004-01-10 at 04:39, Javier Fernández-Sanguino Peña wrote:
> On Fri, Jan 09, 2004 at 03:30:46PM -0500, Hubert Chan wrote:
> > >>>>> "Javier" == Javier Fernández-Sanguino Peña <[EMAIL PROTECTED]> writes:
> > 
> > [...]
> > 
> > Javier> That only mandates what checks will be run when running 'tiger'
> > Javier> (the whole security suite). If you want to adjust the cron job
> > Javier> you should remove 'check_finddeleted' from /etc/tiger/cronrc.
> > 
> > Thanks.
> > 
> > That seems highly, uhm..., unintuitive, though.  A note in tigerrc
> > might help.  (Or is it possible to change the behaviour so that tigerrc
> > can disable a check?  e.g. by having check_... load tigerrc?)

Actually the tigerrc is already loaded when the script execute ... I
have tested a small patch that should do what you want.

Javi,

Do you see any problem with this method?  If not I can work on a patch
that will update all the checks to perform this test before running.

Thanks,

- Ryan

> Will add a note in the next upload.
> 
> Javi
Index: scripts/check_finddeleted
===================================================================
RCS file: /cvsroot/tiger/tiger/scripts/check_finddeleted,v
retrieving revision 1.4
diff -u -p -r1.4 check_finddeleted
--- scripts/check_finddeleted	19 Sep 2003 01:37:46 -0000	1.4
+++ scripts/check_finddeleted	14 Jan 2004 07:25:18 -0000
@@ -81,6 +81,8 @@ done
   exit 0
 }
 
+[ "$Tiger_Check_DELETED" != 'Y' ] && exit 0
+
 #------------------------------------------------------------------------
 echo
 echo "# Performing check of deleted files used by processes..."

Reply via email to