ports/91553: Make portaudit call programs in /sbin with full path
Rolf Grossmann
rg at progtech.net
Mon Jan 9 13:50:09 UTC 2006
>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 at 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:
More information about the freebsd-ports-bugs
mailing list