NetBSD Problem Report #22362

Received: (qmail 26160 invoked by uid 605); 5 Aug 2003 15:59:16 -0000
Message-Id: <20030805155915.1C5BD11153@narn.netbsd.org>
Date: Tue,  5 Aug 2003 15:59:15 +0000 (UTC)
From: mw@blobulent.com
Sender: gnats-bugs-owner@NetBSD.org
Reply-To: mw@blobulent.com
To: gnats-bugs@gnats.NetBSD.org
Subject: security/tripwire lacks darwin-specific config files
X-Send-Pr-Version: www-1.0

>Number:         22362
>Category:       pkg
>Synopsis:       security/tripwire lacks darwin-specific config files
>Confidential:   no
>Severity:       critical
>Priority:       low
>Responsible:    cjep
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 05 16:00:00 +0000 2003
>Closed-Date:    Wed Feb 10 13:02:13 +0000 2021
>Last-Modified:  Wed Feb 10 13:05:01 +0000 2021
>Originator:     michael wolfson
>Release:        N/A
>Organization:
>Environment:
Darwin Bondi 6.6 Darwin Kernel Version 6.6: Thu May  1 21:48:54 PDT 2003; root:xnu/xnu-344.34.obj~1/RELEASE_PPC  Power Macintosh powerpc
>Description:
Can't build security/tripwire on Darwin/MacOS X:

===> Checking for vulnerabilities in tripwire-1.2nb1
=> tripwire-1.2.tar.Z doesn't seem to exist on this system.
=> Attempting to fetch tripwire-1.2.tar.Z from ftp://coast.cs.purdue.edu/pub/too
ls/unix/ids/tripwire/.
=> [462187 bytes]
Unimplemented command.
No such file.
=> Attempting to fetch tripwire-1.2.tar.Z from ftp://ftp.fi.netbsd.org/pub/NetBS
D/packages/distfiles/.
=> [462187 bytes]
'EPSV': command not understood.
=> Checksum OK for tripwire-1.2.tar.Z.
===> Extracting for tripwire-1.2nb1
cd /Users/mw/pkgsrc/security/tripwire/work && /usr/pkg/bin/pax -O -rf T1.2.tar
/bin/cp /Users/mw/pkgsrc/security/tripwire/files/conf-darwin.h /Users/mw/pkgsrc/
security/tripwire/work/tripwire-1.2/configs
/bin/cp: /Users/mw/pkgsrc/security/tripwire/files/conf-darwin.h: No such file or
 directory
*** Error code 1

Stop.

>How-To-Repeat:
Build security/tripwire on Darwin/MacOS X
>Fix:

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: agc 
State-Changed-When: Fri Sep 19 09:26:23 EDT 2003 
State-Changed-Why:  
I've closed the PR for now - I can write the configuration file to compile 
this package on Darwin, but lack a Mac OS X box on which to find the full 
pathnames to protect for tw.conf.darwin. 

Accordingly, I've marked the packages as only for NetBSD and Solaris, but 
if someone can provide a config file for MacOS X, it would be great, and 
this PR can be reopened. 


Responsible-Changed-From-To: pkg-manager->agc 
Responsible-Changed-By: agc 
Responsible-Changed-When: Fri Sep 19 09:26:23 EDT 2003 
Responsible-Changed-Why:  
agc took responsibility for this one. 

From: "Alistair G. Crooks" <agc@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:  
Subject: pr/22362 CVS commit: pkgsrc/security/tripwire
Date: Fri, 19 Sep 2003 13:26:12 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	agc
 Date:		Fri Sep 19 13:26:12 UTC 2003

 Modified Files:
 	pkgsrc/security/tripwire: Makefile

 Log Message:
 Mark tripwire as being only for NetBSD and Solaris right now.

 The Darwin compile time configuration is easy to write, but I don't have a
 Darwin box handy, and so the tw.conf.darwin is a bit difficult to write as
 there tend to be a few non-standard paths.

 In response to PR 22362.


 To generate a diff of this commit:
 cvs rdiff -r1.13 -r1.14 pkgsrc/security/tripwire/Makefile

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.


From: Michael Wolfson <michael@nosflow.com>
To: gnats-bugs@gnats.netbsd.org
Cc: agc@netbsd.org, pkg-manager@netbsd.org
Subject: Re: pkg/22362
Date: Fri, 19 Sep 2003 09:04:50 -0700

 On Friday, September 19, 2003, at 06:28  AM, agc@netbsd.org wrote:

 > I've closed the PR for now - I can write the configuration file to 
 > compile
 > this package on Darwin, but lack a Mac OS X box on which to find the 
 > full
 > pathnames to protect for tw.conf.darwin.

 I can provide an OS X account for any developer wishing to work on 
 Darwin support.

 > Accordingly, I've marked the packages as only for NetBSD and Solaris, 
 > but
 > if someone can provide a config file for MacOS X, it would be great, 
 > and
 > this PR can be reopened.

 What's involved in that?

    -- MW

State-Changed-From-To: closed->open 
State-Changed-By: wiz 
State-Changed-When: Fri Sep 19 12:19:16 EDT 2003 
State-Changed-Why:  
Not really solved, and agc lacks the OS-access. 


Responsible-Changed-From-To: agc->pkg-manager 
Responsible-Changed-By: wiz 
Responsible-Changed-When: Fri Sep 19 12:19:16 EDT 2003 
Responsible-Changed-Why:  
Not really solved, and agc lacks the OS-access. 
Responsible-Changed-From-To: pkg-manager->darwin-pkg-people 
Responsible-Changed-By: wiz 
Responsible-Changed-When: Thu Apr 1 18:13:08 UTC 2004 
Responsible-Changed-Why:  
Darwin-specific bug. 

From: Dan Winship <danw@NetBSD.org>
To: gnats-bugs@gnats.netbsd.org
Cc: mw@blobulent.com
Subject: Re: pkg/22362
Date: Sat, 24 Apr 2004 14:23:08 -0400

 > Synopsis: security/tripwire lacks darwin-specific config files

 There are patches that include (among other things) Darwin support at
 http://www.frenchfries.net/paul/tripwire/. But they're against tripwire 
 2.3.1, and don't look like they'd work with our tripwire 1.2 package. I 
 think step one is probably to update security/tripwire, which would 
 require someone who is familiar with the package

State-Changed-From-To: open->analyzed 
State-Changed-By: danw 
State-Changed-When: Sat Apr 24 18:26:14 UTC 2004 
State-Changed-Why:  
need to update tripwire before this can proceed 
From: Ben Collver <collver@peak.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: re: pkg/22362
Date: Fri, 19 Nov 2004 06:14:52 -0800

 Speaking of tripwire2, it exists in pkgsrc-wip but is not ported to
 NetBSD yet.  See the following links:
 http://cvs.sourceforge.net/viewcvs.py/pkgsrc-wip/wip/tripwire2/
 http://www.freebsd.org/cgi/cvsweb.cgi/ports/security/tripwire/

Responsible-Changed-From-To: darwin-pkg-people->macos-pkg-people
Responsible-Changed-By: dholland@NetBSD.org
Responsible-Changed-When: Wed, 07 Mar 2012 05:17:17 +0000
Responsible-Changed-Why:
darwin-pkg-people has been changed to macos-pkg-people


Responsible-Changed-From-To: macos-pkg-people->cjep
Responsible-Changed-By: cjep@NetBSD.org
Responsible-Changed-When: Tue, 09 Feb 2021 14:20:51 +0000
Responsible-Changed-Why:
I may have a fix. strcpy was copying strings over itself -preventing build on Darwin.


From: Benny Siegert <bsiegert@gmail.com>
To: gnats-bugs@netbsd.org
Cc: cjep@netbsd.org, macos-pkg-people@netbsd.org, pkgsrc-bugs@netbsd.org, 
	gnats-admin@netbsd.org, mw@blobulent.com
Subject: Re: pkg/22362 (security/tripwire lacks darwin-specific config files)
Date: Tue, 9 Feb 2021 16:27:07 +0100

 On Tue, Feb 9, 2021 at 3:20 PM <cjep@netbsd.org> wrote:
 > Synopsis: security/tripwire lacks darwin-specific config files

 > I may have a fix. strcpy was copying strings over itself -preventing build on Darwin.

 You sure this was the right bug report?

 -- 
 Benny

From: Chris Pinnock <chris_pinnock@mac.com>
To: gnats-bugs@netbsd.org
Cc: Chris Pinnock <cjep@netbsd.org>,
 gnats-admin@netbsd.org,
 pkgsrc-bugs@netbsd.org,
 mw@blobulent.com
Subject: Re: pkg/22362 (security/tripwire lacks darwin-specific config files)
Date: Tue, 9 Feb 2021 15:31:42 +0000

 Yes. :-)

 See config.parse.c

 I=E2=80=99ve made some configs for Darwin, but it still would not build =
 due to a dangerous use of strcpy. Having another look.
 May have a fix for this PR later on today.

 Kind regards
 Chris

 > On 9 Feb 2021, at 15:30, Benny Siegert <bsiegert@gmail.com> wrote:
 >=20
 > The following reply was made to PR pkg/22362; it has been noted by =
 GNATS.
 >=20
 > From: Benny Siegert <bsiegert@gmail.com>
 > To: gnats-bugs@netbsd.org
 > Cc: cjep@netbsd.org, macos-pkg-people@netbsd.org, =
 pkgsrc-bugs@netbsd.org,=20
 > 	gnats-admin@netbsd.org, mw@blobulent.com
 > Subject: Re: pkg/22362 (security/tripwire lacks darwin-specific config =
 files)
 > Date: Tue, 9 Feb 2021 16:27:07 +0100
 >=20
 > On Tue, Feb 9, 2021 at 3:20 PM <cjep@netbsd.org> wrote:
 >> Synopsis: security/tripwire lacks darwin-specific config files
 >=20
 >> I may have a fix. strcpy was copying strings over itself -preventing =
 build on Darwin.
 >=20
 > You sure this was the right bug report?
 >=20
 > --=20
 > Benny
 >=20

State-Changed-From-To: analyzed->closed
State-Changed-By: cjep@NetBSD.org
State-Changed-When: Wed, 10 Feb 2021 13:02:13 +0000
State-Changed-Why:
Apologies for the delay on this PR. I used it as an exercise to remind
myself about pkgsrc having got the commit bits back for NetBSD.

I've added the configuration and the package seems to work fine on Darwin.
I've tested that it starts on NetBSD/i386 too.

NetBSD/amd64 seems broken, but nb3 is also broken - it aborts due to the
strcpy issue. It gets further with this but needs attention.

We will look at upgrading tripwire to the latest. A package is being
developed in pkgsrc-wip.


From: "Chris Pinnock" <cjep@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/22362 CVS commit: pkgsrc/security/tripwire
Date: Wed, 10 Feb 2021 13:00:06 +0000

 Module Name:	pkgsrc
 Committed By:	cjep
 Date:		Wed Feb 10 13:00:06 UTC 2021

 Modified Files:
 	pkgsrc/security/tripwire: MESSAGE Makefile distinfo
 	pkgsrc/security/tripwire/patches: patch-ae
 Added Files:
 	pkgsrc/security/tripwire/files: conf-darwin.h tw.conf.darwin

 Log Message:
 PR#22362. Add Darwin support.
 Also avoid overlapping strcpy.

 Should be noted that this package needs an upgrade. There is one being
 developed in pkgsrc-wip.


 To generate a diff of this commit:
 cvs rdiff -u -r1.2 -r1.3 pkgsrc/security/tripwire/MESSAGE
 cvs rdiff -u -r1.36 -r1.37 pkgsrc/security/tripwire/Makefile
 cvs rdiff -u -r1.14 -r1.15 pkgsrc/security/tripwire/distinfo
 cvs rdiff -u -r0 -r1.1 pkgsrc/security/tripwire/files/conf-darwin.h \
     pkgsrc/security/tripwire/files/tw.conf.darwin
 cvs rdiff -u -r1.2 -r1.3 pkgsrc/security/tripwire/patches/patch-ae

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.