Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Aug 1998 23:36:01 -0700
From:      Everett F Batey <efb@cotdazr.org>
To:        freebsd-security@FreeBSD.ORG
Cc:        efb@cotdazr.org, sthaug@nethelp.no
Subject:   REPAIRS Tested for bind_8.1.2 For FreeBSD 2.0.5 .. Seconded
Message-ID:  <19980805233601.46547@cotdazr.org>

next in thread | raw e-mail | index | archive | help

--L5UXtIhxfXey3p5a
Content-Type: text/plain; charset=us-ascii


freebsd-security,

The patch included below in Steinar's email which overcomes the 
/bin/sh problem in the conf/.... was ALL it took for me to build
a clean Bind 812 with default cc/gcc on F.Bsd 2.0.5 .. Please, 
make it available to the others who have F.Bsd 2.1 back to 2.0.5 

IF this needs to get to another address at Free.Bsd .. PLEASE forward
it .. losing a week and being kicked off DNS by hackers could have
ended sooner.  

Thank you .. this is a second on Steinar's earlier request 

/Everett/


-- 
 + http://www.cotdazr.org  efb@cotdazr.org -- WA6CRE -- http://www.gitt.gov +
 + http://www.oxnardsd.org  [EFB15]  SunUG: http://halide.acs.uci.edu/GCSUG +
 + BSD Unix Sun Linux, Security, Cisco Routing, QMail Inn DNS & My Opinions +
 + Beep: 805.655.2017 Vmail: 805.340.6471+5, 800.545.6998 USN: 805.982.7180 +

--L5UXtIhxfXey3p5a
Content-Type: message/rfc822
Content-Description: Forwarded message from Everett Batey <efb@cotdazr.org>

<>Date: Wed, 05 Aug 1998 00:13:47 -0700
<>To: sthaug@nethelp.no
<>Subject: Re: PPP.3000.exposure

For Info of all Bind_8.1.2 With ONLY the shell fix in port/settings 
Builds just FINE on FreeBSD 2.0.5 .. runs here now .. seems not to
be crashable by the net hacks .. 

THANKS folks .. 

Now is there a fast cure for lighting port 3000 in iijppp or is it
truly harmless ???

/Everett/

At 12:40 PM 8/3/98 +0200, sthaug@nethelp.no wrote:
 
>> ..and does not build on 2.1 systems AT ALL. I always hated "too smart"
>> programs.. it tries to build some scriptfile and fails and i don't even
>> know WHAT should it do if it worked..
>
>It's well known that BIND 8.x doesn't build on 2.1 systems. I sent patches
>for this to the BIND maintainers long ago - see below. Unfortunately, they
>haven't been integrated.
>
>Steinar Haug, Nethelp consulting, sthaug@nethelp.no
>----------------------------------------------------------------------
>To: bind-bugs@isc.org
>Subject: Fixes for bind-8.1.1-T1A on FreeBSD-2.1.7.1 (and earlier)
>From: sthaug@nethelp.no
>Date: Sun, 25 May 1997 15:38:53 +0200
>
>bind-8.1.1-T1A doesn't compile "out of the box" on FreeBSD-2.1.7.1 and
>earlier. This is partly my fault - when I did the original FreeBSD port,
>I didn't have any 2.1.7.1 system to test on (only 2.2 and newer).
>
>I still don't have a 2.1.7.1 system, but I've compiled 8.1.1-T1A on a
>2.2 system, but in a 2.1.7.1 *changerooted* environment (ie. 2.1.7.1
>include files, compilers etc).
>

[[Comment efb@cotdazr.org .. this is the only piece I tested and vrfyd
  for F.Bsd 2.0.5  /Ev/ ]]

>There's only one real problem: The following line from port/settings
>tickles a bug in the 2.1.7.1 sh:
>
>	eval "env=`echo \\${\$var-'$val'}`"
>
>and you get the error message:
>
>	port/settings: 1: Syntax error: Bad substitution
>
>The enclosed diff fixes this for FreeBSD 2.1.7.1. The resulting named
>runs fine on FreeBSD 2.2.
>
>I've also verified that the same .settings file (as the original) is
>produced on these platforms:
>
>	SunOS 4.1.3/gcc
>	Solaris 2.5.1/gcc
>	Digital Unix 3.2G/cc
>	HP-UX 10.20/cc
>
>when doing an "out of the box" compile (make clean; make depend; make).
>Note that I've only verified that .settings is equal - I haven't tried
>running 8.1.1-T1A named on all these platforms.
>
>One other change suggested for FreeBSD-2.1.7.1 and earlier: AF_INET6
>is undefined in 2.1.7.1 and earlier, and defined to be 28 in 2.2 and
>newer (/usr/include/sys/socket.h). port/freebsd/include/port_after.h
>currently defines AF_INET6 as 24 (if undefined). I'd suggest changing
>this to 28, to be compatible with newer versions of FreeBSD.
>
>Steinar Haug, Nethelp consulting, sthaug@nethelp.no
>----------------------------------------------------------------------
>*** settings.orig	Tue Dec 17 22:49:17 1996
>--- settings	Sun May 25 14:16:51 1997
>***************
>*** 22,28 ****
>  while read setting; do
>  	var=`expr "$setting" : "'\([A-Z0-9_]*\)="`
>  	val=`expr "$setting" : "'[A-Z0-9_]*=\([^']*\)'\$"`
>! 	eval "env=`echo \\${\$var-'$val'}`"
>  	result="$result '$var=$env'"
>  done
>  
>--- 22,29 ----
>  while read setting; do
>  	var=`expr "$setting" : "'\([A-Z0-9_]*\)="`
>  	val=`expr "$setting" : "'[A-Z0-9_]*=\([^']*\)'\$"`
>! 	rhs="\${""$var""-\$val}"
>! 	eval "env=$rhs"
>  	result="$result '$var=$env'"
>  done
>  
>*** port_after.h.orig	Fri Apr 25 20:12:50 1997
>--- port_after.h	Sun May 25 15:15:47 1997
>***************
>*** 31,35 ****
>   * derived systems for which AF_INET6 is defined.
>   */
>  #ifndef AF_INET6
>! #define AF_INET6	24
>  #endif
>--- 31,35 ----
>   * derived systems for which AF_INET6 is defined.
>   */
>  #ifndef AF_INET6
>! #define AF_INET6	28
>  #endif
>


















--L5UXtIhxfXey3p5a--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe security" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980805233601.46547>