[Logcheck-devel] Re: [Logcheck-commits] CVS logcheck/src

maks attems debian at sternwelten.at
Sat May 15 09:45:22 UTC 2004


On Sat, 15 May 2004, CVS User ttroxell wrote:

>      if [ -f /etc/logcheck/header.txt ] ; then
> -       $CAT /etc/logcheck/header.txt >> $TMPDIR/report
> +       $CAT /etc/logcheck/header.txt >> $TMPDIR/report \
> +           || error "Could not append header to $TMPDIR/report  Disk full?"
>      fi
>  }
>  
> @@ -152,7 +157,8 @@
>  # Add a footer to the report.
>  setfooter() {
>      if [ -f /etc/logcheck/footer.txt ] ; then
> -       $CAT /etc/logcheck/footer.txt >> $TMPDIR/report
> +       $CAT /etc/logcheck/footer.txt >> $TMPDIR/report \
> +           || error "Could not append footer to $TMPDIR/report Disk full?"
>      fi

well i've thought about these, but are they critical?

we might have no /etc/logcheck/header.txt,
and actually we do have no /etc/logcheck/footer.txt
so aboves fails anyway.

i would prefer to still report and forget aboves *txt,
but i might be wrong.

actually on my server i had an bad acl and logcheck
had no read access to /etc/logcheck/header.txt,
logcheck still reported security events, i found that neat.

a++ maks




-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/logcheck-devel/attachments/20040515/63eca653/attachment.pgp 


More information about the Logcheck-devel mailing list