Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 07 Jun 2017 07:05:24 -0400
From:      Allan Jude <allanjude@FreeBSD.org>
To:        Fabian Keil <freebsd-listen@fabiankeil.de>
Cc:        svn-src-all@freebsd.org
Subject:   Re: svn commit: r319611 - in head: sys/kern sys/sys usr.sbin/jail
Message-ID:  <3D906167-AC44-4BA5-B8ED-5E793D492BC0@FreeBSD.org>
In-Reply-To: <20170606114425.126fd846@fabiankeil.de>
References:  <201706060215.v562F167035683@repo.freebsd.org> <20170606114425.126fd846@fabiankeil.de>

next in thread | previous in thread | raw e-mail | index | archive | help

On June 6, 2017 5:44:25 AM EDT, Fabian Keil <freebsd-listen@fabiankeil.de> wrote:
>Allan Jude <allanjude@FreeBSD.org> wrote:
>
>> Author: allanjude
>> Date: Tue Jun  6 02:15:00 2017
>> New Revision: 319611
>> URL: https://svnweb.freebsd.org/changeset/base/319611
>> 
>> Log:
>>   Jails: Optionally prevent jailed root from binding to privileged
>ports
>>   
>>   You may now optionally specify allow.noreserved_ports to prevent
>root
>>   inside a jail from using privileged ports (less than 1024)
>>   
>>   PR:		217728
>>   Submitted by:	Matt Miller <mattm916@pulsar.neomailbox.ch>
>>   Reviewed by:	jamie, cem, smh
>>   Relnotes:	yes
>>   Differential Revision:	https://reviews.freebsd.org/D10202
>> 
>> Modified:
>>   head/sys/kern/kern_jail.c
>>   head/sys/sys/jail.h
>>   head/usr.sbin/jail/jail.8
>[...]
>> @@ -611,6 +613,8 @@ with non-jailed parts of the system.
>>  Sockets within a jail are normally restricted to IPv4, IPv6, local
>>  (UNIX), and route.  This allows access to other protocol stacks that
>>  have not had jail functionality added to them.
>> +.It Va allow.reserved_ports
>> +The jail root may bind to ports lower than 1024. 
>
>This description seems to imply that net.inet.ip.portrange.reservedhigh
>isn't honoured while it actually is.
>
>Fabian

I think the confusion here is: this option prevents root in the jail from using reserved ports. Nonroot users are always restricted
-- 
Allan Jude



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3D906167-AC44-4BA5-B8ED-5E793D492BC0>