From owner-cvs-all Fri Feb 21 9:50:35 2003 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D1AD237B401; Fri, 21 Feb 2003 09:50:31 -0800 (PST) Received: from sccrmhc02.attbi.com (sccrmhc02.attbi.com [204.127.202.62]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8DAFA43FBD; Fri, 21 Feb 2003 09:50:30 -0800 (PST) (envelope-from crist.clark@attbi.com) Received: from blossom.cjclark.org (12-234-89-252.client.attbi.com[12.234.89.252]) by sccrmhc02.attbi.com (sccrmhc02) with ESMTP id <2003022117502900200ahraoe>; Fri, 21 Feb 2003 17:50:29 +0000 Received: from blossom.cjclark.org (localhost. [127.0.0.1]) by blossom.cjclark.org (8.12.6/8.12.3) with ESMTP id h1LHoReq090296; Fri, 21 Feb 2003 09:50:27 -0800 (PST) (envelope-from crist.clark@attbi.com) Received: (from cjc@localhost) by blossom.cjclark.org (8.12.6/8.12.6/Submit) id h1LHoP5O090295; Fri, 21 Feb 2003 09:50:25 -0800 (PST) X-Authentication-Warning: blossom.cjclark.org: cjc set sender to crist.clark@attbi.com using -f Date: Fri, 21 Feb 2003 09:50:24 -0800 From: "Crist J. Clark" To: Darren Reed Cc: "Jeroen C. van Gelderen" , src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/netinet in_pcb.c Message-ID: <20030221175024.GA90209@blossom.cjclark.org> Reply-To: cjclark@alum.mit.edu References: <326CFC6B-459E-11D7-9535-000393754B1C@vangelderen.org> <200302211646.DAA01570@avalon.reed.wattle.id.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200302211646.DAA01570@avalon.reed.wattle.id.au> User-Agent: Mutt/1.4i X-URL: http://people.freebsd.org/~cjc/ Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, Feb 22, 2003 at 03:46:22AM +1100, Darren Reed wrote: > In some email I received from Jeroen C. van Gelderen, sie wrote: > > On Friday, Feb 21, 2003, at 06:28 Europe/Amsterdam, Crist J. Clark > > wrote: > > > cjc 2003/02/20 21:28:28 PST > > > > > > Modified files: > > > sys/netinet in_pcb.c > > > Log: > > > The ancient and outdated concept of "privileged ports" in UNIX-type > > > OSes has probably caused more problems than it ever solved. Allow the > > > user to retire the old behavior by specifying their own privileged > > > range with, > > > > > > net.inet.ip.portrange.reservedhigh default = IPPORT_RESERVED - 1 > > > net.inet.ip.portrange.reservedlo default = 0 > > > > Thank you, thank you, thank you! > > FWIW, this feature is in line with similar settings available on > Solaris but perhaps they're more in tune with the threat here: > > # ndd /dev/tcp tcp_smallest_nonpriv_port > 1024 > # ndd -set /dev/tcp tcp_smallest_nonpriv_port 1023 > operation failed, Invalid argument > > If we assume that ports < 1024 are part of a "priviledge base" then > the correct way to get access to them from a non-root application is > through MAC (Robert Watson) or something like systrace. The way the code was, the restriction of < 1024 was absolute. Now it is possible to turn off this hardcoded lock and _then_ put some other control mechanism (like some MAC/trusted OS tools, systrace, whatever) on top of this. -- Crist J. Clark | cjclark@alum.mit.edu | cjclark@jhu.edu http://people.freebsd.org/~cjc/ | cjc@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message