From owner-svn-src-all@freebsd.org Wed Jun 7 11:05:28 2017 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 729C6C09A20 for ; Wed, 7 Jun 2017 11:05:28 +0000 (UTC) (envelope-from allanjude@FreeBSD.org) Received: from mx1.scaleengine.net (mx1.scaleengine.net [209.51.186.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5633A6FAC2 for ; Wed, 7 Jun 2017 11:05:28 +0000 (UTC) (envelope-from allanjude@FreeBSD.org) Received: from [10.124.37.52] (unknown [209.171.88.52]) (Authenticated sender: allanjude.freebsd@scaleengine.com) by mx1.scaleengine.net (Postfix) with ESMTPSA id 1537B13D31; Wed, 7 Jun 2017 11:05:26 +0000 (UTC) Date: Wed, 07 Jun 2017 07:05:24 -0400 User-Agent: K-9 Mail for Android In-Reply-To: <20170606114425.126fd846@fabiankeil.de> References: <201706060215.v562F167035683@repo.freebsd.org> <20170606114425.126fd846@fabiankeil.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: svn commit: r319611 - in head: sys/kern sys/sys usr.sbin/jail To: Fabian Keil CC: svn-src-all@freebsd.org From: Allan Jude Message-ID: <3D906167-AC44-4BA5-B8ED-5E793D492BC0@FreeBSD.org> X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jun 2017 11:05:28 -0000 On June 6, 2017 5:44:25 AM EDT, Fabian Keil wrote: >Allan Jude wrote: > >> Author: allanjude >> Date: Tue Jun 6 02:15:00 2017 >> New Revision: 319611 >> URL: https://svnweb=2Efreebsd=2Eorg/changeset/base/319611 >>=20 >> Log: >> Jails: Optionally prevent jailed root from binding to privileged >ports >> =20 >> You may now optionally specify allow=2Enoreserved_ports to prevent >root >> inside a jail from using privileged ports (less than 1024) >> =20 >> PR: 217728 >> Submitted by: Matt Miller >> Reviewed by: jamie, cem, smh >> Relnotes: yes >> Differential Revision: https://reviews=2Efreebsd=2Eorg/D10202 >>=20 >> Modified: >> head/sys/kern/kern_jail=2Ec >> head/sys/sys/jail=2Eh >> head/usr=2Esbin/jail/jail=2E8 >[=2E=2E=2E] >> @@ -611,6 +613,8 @@ with non-jailed parts of the system=2E >> Sockets within a jail are normally restricted to IPv4, IPv6, local >> (UNIX), and route=2E This allows access to other protocol stacks that >> have not had jail functionality added to them=2E >> +=2EIt Va allow=2Ereserved_ports >> +The jail root may bind to ports lower than 1024=2E=20 > >This description seems to imply that net=2Einet=2Eip=2Eportrange=2Ereserv= edhigh >isn't honoured while it actually is=2E > >Fabian I think the confusion here is: this option prevents root in the jail from = using reserved ports=2E Nonroot users are always restricted --=20 Allan Jude