From owner-freebsd-hackers Thu Nov 9 7:31:54 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from quack.kfu.com (quack.kfu.com [205.178.90.194]) by hub.freebsd.org (Postfix) with ESMTP id 12B1137B479 for ; Thu, 9 Nov 2000 07:31:52 -0800 (PST) Received: from medusa.kfu.com (medusa.kfu.com [205.178.90.222]) by quack.kfu.com (8.11.0/8.11.1) with ESMTP id eA9FVkf38933 for ; Thu, 9 Nov 2000 07:31:46 -0800 (PST) (envelope-from nsayer@quack.kfu.com) Received: from icarus.kfu.com (ssmail@localhost) by medusa.kfu.com (8.11.0/8.11.0) with ESMTP id eA9FVjF00300 for ; Thu, 9 Nov 2000 07:31:45 -0800 (PST) (envelope-from nsayer@quack.kfu.com) Received: from quack.kfu.com by icarus.kfu.com with ESMTP (8.11.0//ident-1.0) id eA9EDix58383; Thu, 9 Nov 2000 06:13:44 -0800 (PST) Message-ID: <3A0AB117.6FCBD79F@quack.kfu.com> Date: Thu, 09 Nov 2000 06:13:43 -0800 From: Nick Sayer X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: opentrax@email.com Cc: wpaul@FreeBSD.ORG, nsayer@sftw.com, hackers@FreeBSD.ORG Subject: Re: RPC not taking the same service twice: a bug or a security measure? References: <200011091329.FAA14148@spammie.svbug.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG opentrax@email.com wrote: > > On 8 Nov, Bill Paul wrote: > >> A coworker seems to have found an issue with portmap on FreeBSD. > >> Aparently, if you try and register the same service twice, but with > >> different protocols (UDP vs TCP), it doesn't work. I'm not entirely sure > >> I believe this, and I am digging for more details, but I am writing to > >> see if anyone can tell me anything that will save me having to do the > >> investigative work. :-) I'll follow up with more details as I can. > > > > No you won't, because both you and your cow-orker are smoking entirely > > too much crack. (Him for hallucinating this problem in the first place, > > and you for believing him enough to post this query here.) > > > Hey!! There is no need for this type of response. > It's obvious the person writing has good intentions, > but has not read a TCP/IP book, that's worth a damm. > I would consider it a personal favor, if this might be > responded to in a less attacking manner. No, no. He's right. We were smoking too much crack. :-) The problem turns out that we try to unregister the service before we register it. On solaris we use rpcb_unset(), which is protocol specific. On Freebsd, we use pmap_unset() which does not consider protocol. It would unregister the one we registered on the other protocol moments ago. I guess on FreeBSD there is no way to unregister selectively such as with rpcb_unset(), so we will just have to be a little more careful. :-) In my own defense, I'd like to point out that I've read lots of good TCP/IP books. It's RPC that I know very little about. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message