Subject: pkg/37391: security/tripwire PRE_ROOT_CMD chmods the wrong directory
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <Lloyd.Parkes@ird.govt.nz>
List: pkgsrc-bugs
Date: 11/15/2007 22:35:00
>Number: 37391
>Category: pkg
>Synopsis: security/tripwire PRE_ROOT_CMD chmods the wrong directory
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Nov 15 22:35:00 +0000 2007
>Originator: Lloyd Parkes
>Release: pkgsrc-current
>Organization:
Inland Revenue
>Environment:
SunOS xxx.ird.govt.nz 5.9 Generic_122300-14 sun4u sparc SUNW,UltraAX-i2
cc: Sun C 5.8 Patch 121015-05 2007/08/01
>Description:
The security/tripwire/Makefile sets a PRE_ROOT_CMD of ${CHMOD} -R go+rwx ${WRKDIR}. This doesn't work because it recurses down into work/.tools and fails to chmod the system utilities symlinked there. Using WRKSRC instead of WRKDIR should be fine.
>How-To-Repeat:
Type bmake install as an unprivileged user.
>Fix:
Patch to be emailed later to avoid whitespace mangling.