From owner-freebsd-bugs@FreeBSD.ORG Mon Jun 16 11:50:02 2008 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5432A1065686 for ; Mon, 16 Jun 2008 11:50:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 32BA28FC24 for ; Mon, 16 Jun 2008 11:50:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m5GBo29V044263 for ; Mon, 16 Jun 2008 11:50:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m5GBo1P6044262; Mon, 16 Jun 2008 11:50:01 GMT (envelope-from gnats) Resent-Date: Mon, 16 Jun 2008 11:50:01 GMT Resent-Message-Id: <200806161150.m5GBo1P6044262@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Alex Kozlov Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 44B611065670 for ; Mon, 16 Jun 2008 11:49:06 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 34B978FC2C for ; Mon, 16 Jun 2008 11:49:06 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m5GBn6pH094595 for ; Mon, 16 Jun 2008 11:49:06 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.2/8.14.1/Submit) id m5GBn5MT094593; Mon, 16 Jun 2008 11:49:05 GMT (envelope-from nobody) Message-Id: <200806161149.m5GBn5MT094593@www.freebsd.org> Date: Mon, 16 Jun 2008 11:49:05 GMT From: Alex Kozlov To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: bin/124641: [patch] new periodic script for checking for ports with mismatched checksums X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Jun 2008 11:50:02 -0000 >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: