Date: Mon, 9 Jan 2006 14:42:43 +0100 (CET) From: Rolf Grossmann <rg@progtech.net> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/91553: Make portaudit call programs in /sbin with full path Message-ID: <200601091342.k09DghqB017840@progtech.net> Resent-Message-ID: <200601091350.k09Do8g3081161@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 91553 >Category: ports >Synopsis: Make portaudit call programs in /sbin with full path >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jan 09 13:50:07 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Rolf Grossmann >Release: FreeBSD 5.4-STABLE i386 >Organization: >Environment: System: FreeBSD ptserver 5.4-STABLE FreeBSD 5.4-STABLE #2: Fri Jul 8 00:16:17 CEST 2005 grossman@ipcover:/export/FreeBSD/src/sys/i386/compile/PTSERVER i386 >Description: I've tried running portaudit from cron and I had to change two calls, because /sbin is not in the default path. >How-To-Repeat: Run portaudit from cron. >Fix: --- /tmp/portaudit-cmd.sh.orig Mon Jan 9 14:32:12 2006 +++ /usr/ports/security/portaudit/files/portaudit-cmd.sh Mon Jan 9 14:32:28 2006 @@ -58,7 +58,7 @@ { chksum1=`extract_auditfile | sed -nE -e '$s/^#CHECKSUM: *MD5 *([0-9a-f]{32})$/\1/p'` - chksum2=`extract_auditfile | sed -e '$d' | md5` + chksum2=`extract_auditfile | sed -e '$d' | /sbin/md5` [ "$chksum1" = "$chksum2" ]; } @@ -128,7 +128,7 @@ audit_installed() { local rc=0 - local osversion=`sysctl -n kern.osreldate` + local osversion=`/sbin/sysctl -n kern.osreldate` fixedre=`echo -n $portaudit_fixed | tr -c '[:alnum:]- \t\n' 'x' | tr -s ' \t\n' '|'` >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200601091342.k09DghqB017840>