bin/124641: [patch] new periodic script for checking for ports with mismatched checksums

Alex Kozlov spam at rm-rf.kiev.ua
Mon Jun 16 11:50:02 UTC 2008


>Number:         124641
>Category:       bin
>Synopsis:       [patch] new periodic script for checking for ports with mismatched checksums
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 16 11:50:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Alex Kozlov
>Release:        FreeBSD 6.3
>Organization:
private
>Environment:
>Description:
Add new periodic/security script for checking for ports with mismatched checksums
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	460.chkportsum
#
echo x - 460.chkportsum
sed 's/^X//' >460.chkportsum << 'END-of-460.chkportsum'
X#!/bin/sh
X
Xif [ -r /etc/defaults/periodic.conf ]
Xthen
X    . /etc/defaults/periodic.conf
X    source_periodic_confs
Xfi
X
X. /etc/periodic/security/security.functions
X
Xrc=0
X
Xecho ""
Xecho 'Checking for ports with mismatched checksums:'
X
Xcase "${daily_status_security_chkportsum_enable}" in
X	[Yy][Ee][Ss])
X	pkg_info -ga 2>/dev/null | \
X	while read one two three; do
X		case ${one} in
X			Information)
X			case ${two} in
X				  for) name=${three%%:} ;;
X					*) name='??' ;;
X			esac
X			;;
X			Mismatched|'') ;;
X			*)
X			if [ -n ${name} ]; then
X				echo ${name}: ${one}
X			fi
X			;;
X		esac
X	done
X	;;
X	*)
X	rc=0
X	;;
Xesac
X
Xexit $rc
END-of-460.chkportsum
exit



>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list