Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Jul 2001 15:14:40 +0200
From:      "Jeroen Massar" <jeroen@unfix.org>
To:        "'Matt Dillon'" <dillon@earth.backplane.com>
Cc:        "'Brian Somers'" <brian@Awfulhak.org>, "'Hajimu UMEMOTO'" <ume@mahoroba.org>, <aschneid@mail.slc.edu>, <ras@e-gerbil.net>, <roam@orbitel.bg>, <freebsd-security@FreeBSD.ORG>, <freebsd-gnats-submit@FreeBSD.ORG>
Subject:   RE: RE: bin/22595: telnetd tricked into using arbitrary peer ip 
Message-ID:  <000f01c11379$72391a40$420d640a@HELL>
In-Reply-To: <200107230354.f6N3stj13517@earth.backplane.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Matt Dillon <dillon@earth.backplane.com> wrote:
>     All very nice, guys, but not realistic.  Only FreeBSD uses an API.
>     Third party programs access the structure directly for the most
>     part so adding new fields to the structure will just cause more
>     garbage to be written to the file (many third party programs 
>     don't bother to bzero the structure before writing it out).  We 
>     aren't going to add a separate hostname[] array... we just got
>     through ripping out the hostname crap, because there was never 
>     enough room in the field to actually store the FQDN, and many
>     programs don't bother to verify the forward against the
>     reverse anyway so the data would be suspect.  And short
>     of making a 200+ character array to hold it, which would be masive
>     bloat, there is no way to fit it in the structure.  If 
> you want to store
>     host names for posterity you will have to log-process the file and
>     store the results somewhere else.  Every program under 
> the sun assumes
>     utmp is a fixed-length structure.
> 
>     Pretty much our only option is to extend the size of 
> existing fields
>     and take the 'oh hell the structure size changed' hit.

So... Because they didn't account for this 40 years ago we're stuck with
it??

Another proposal, because I know what you mean with the 'old programs'
problem which should have been fixed a long time ago with an API :)

Quote from my other mail:
8<---
One thing that should be considered to be done if an API is created... :
make a backport to previous versions of FreeBSD and actually
*BSD/Linux/* :)
This also encourages program writers/maintainers to adopt it quicker, as
it's less hassle for them and they don't have to make the
"pre-FreeBSD-5" case or something...
And the best thing of an API (if done right :): seperation of the back
and the frontend... which makes changes like this even easier...
---->8

But now... Make that API log into a different way and place...
We will get two wtmp/utmp files then... But then we can let the 'old'
3rd party programs log to the 'old' utmp/wtmp facility.
Whenever a 'new' program using the API queries the listing function of
the API then the API will simply also check the 'old' facility... Et
presto ... We have a solution :)

The new solution could log to a database, file whatever you'd do with
it.... Just make sure that it fits into an API... :)

That's also one of the reasons I am kinda glad that intel simply made
IA-64 not IA-32 compliant..... Away with the old stuff and backward
compatibility you got emu's (or API's who know the old stuff :) for
that... And Windows is going the same way too... NT != DOS ... Luckily
:)

Greets,
 Jeroen


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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000f01c11379$72391a40$420d640a>