Re: lpd: Malformed from address

From: Garance A Drosihn (drosih@rpi.edu)
Date: 06/02/01


Date: Sat, 2 Jun 2001 15:02:37 -0400
To: "Morgan Davis" <mdavis@cts.com>, <freebsd-stable@FreeBSD.ORG>
From: Garance A Drosihn <drosih@rpi.edu>

At 12:54 PM -0400 6/2/01, I (Garance) wrote:
>In a later message on 6/3/01, Hajimu UMEMOTO wrote:
>>When I ported IPv6 support into FreeBSD from NetBSD, I wrongly
>>brought reserved port checking code into FreeBSD. Originally,
>>FreeBSD's lpd didn't check validity of connection by checking
>>if it comes from reserved port.
>
>Hmm. I wonder if this is something that got dropped along
>the way somewhere. The lpd I use at RPI *does* check that
>jobs are coming from a reserved port, and I am pretty sure I
>never wrote that code. That implies that it must have been
>in whatever version of lpd that RPI started with

A more awake person might have immediately remembered that
the whole reason to keep CVS logs is so people can answer
questions like this...

It appears that freebsd's lpd lost this reserved-port check
with version 1.6 of lpd, back in July of 1997. The comments
for the change do not indicate why the check was dropped (and
from the comments, it's not clear that the check was MEANT to
be dropped...). My gut feeling is that the check is good to
do, which gets us back to finding out why the implementation
added with IPv6 does not seem to work for Morgan.

-- 
Garance Alistair Drosehn            =   gad@eclipse.acs.rpi.edu
Senior Systems Programmer           or  gad@freebsd.org
Rensselaer Polytechnic Institute    or  drosih@rpi.edu
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-security" in the body of the message


Relevant Pages

  • Re: lpd: Malformed from address
    ... Morgan Davis wrote: ... >> to their lpd processes. ... and are refusing to accept those jobs due ... >brought reserved port checking code into FreeBSD. ...
    (FreeBSD-Security)
  • FreeBSD Security Advisory FreeBSD-SA-01:58.lpd
    ... Users on the local machine or on remote systems which are allowed to ... access the local line printer daemon may be able to cause a buffer ... lpd is not enabled on FreeBSD ... The base system that will ship with FreeBSD ...
    (FreeBSD-Security)
  • RE: Unable to set up LPD to use a HP Laserjet 5p in freeBSD 5.3
    ... The additional suggestions focused on the filter file, ... > in freeBSD 5.3 ... >> I changed rc.conf to start lpd for each system ... To unsubscribe, ...
    (freebsd-questions)
  • Unable to set up LPD to use a HP Laserjet 5p in freeBSD 5.3
    ... I`m trying to install my HP laserjet 5p on freebsd 5.3. ... I`ve read the handbook and installed ghostscript and ... I changed rc.conf to start lpd for each system boot. ...
    (freebsd-questions)
  • Printing to lpd server
    ... Attempting connection to FreeBSD 4.8 via lpd. ... fileserver and 5.1 workstation. ...
    (alt.os.linux.suse)