Mailinglist Archive: opensuse-security (685 mails)

< Previous Next >
Re: [suse-security] seccheck
  • From: Anders Johansson <andjoh@xxxxxxxxxxxxxxxxxxxxx>
  • Date: Mon, 25 Feb 2002 14:33:05 +0100
  • Message-id: <200202251433.05889.andjoh@xxxxxxxxxxxxxxxxxxxxx>
On Monday 25 February 2002 12:53, Christoph Egger wrote:
> Hi!
>
> Where does the seccheck script store the md5 sums?

In /var/lib/rpm/*.rpm

It uses rpm -Va to check the md5 values

from /usr/lib/secchk/security-weekly.sh

# md5 check
nice -n 1 rpm -Va 2> /dev/null | grep '^..5' > "$SEC_DATA/rpm-md5.new"
diff -uw "$SEC_DATA/rpm-md5" "$SEC_DATA/rpm-md5.new" | \
egrep -v '^\+\+\+ |^--- |^$|^@@' | sed 's/^[+-]/& /' > "$OUT"
if [ -s "$OUT" ] ; then
printf "\nThe following programs have got a different md5 checksum since
last week:\n"
cat "$OUT"
mv "$SEC_DATA/rpm-md5.new" "$SEC_DATA/rpm-md5"

regards
Anders

< Previous Next >
Follow Ups
References