From owner-freebsd-hackers@FreeBSD.ORG Sat May 31 00:38:47 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5C61E37B401 for ; Sat, 31 May 2003 00:38:47 -0700 (PDT) Received: from milla.ask33.net (milla.ask33.net [217.197.166.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id A93DE43F3F for ; Sat, 31 May 2003 00:38:46 -0700 (PDT) (envelope-from nick@milla.ask33.net) Received: by milla.ask33.net (Postfix, from userid 1001) id 721BA3ABB51; Sat, 31 May 2003 09:44:08 +0200 (CEST) Date: Sat, 31 May 2003 09:44:08 +0200 From: Pawel Jakub Dawidek To: Alexandr Kovalenko Message-ID: <20030531074408.GP45118@garage.freebsd.pl> References: <20030530143542.GA72040@nevermind.kiev.ua> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="rZOkLKku1JyljZ3B" Content-Disposition: inline In-Reply-To: <20030530143542.GA72040@nevermind.kiev.ua> X-PGP-Key-URL: http://garage.freebsd.pl/jules.asc X-OS: FreeBSD 4.8-RELEASE i386 X-URL: http://garage.freebsd.pl User-Agent: Mutt/1.5.1i cc: freebsd-hackers@freebsd.org Subject: Re: jail && (ping && traceroute) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 May 2003 07:38:47 -0000 --rZOkLKku1JyljZ3B Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, May 30, 2003 at 05:35:42PM +0300, Alexandr Kovalenko wrote: +> I have 2 questions: +>=20 +> - where in code should I search for icmp socket binding prohibition in +> jail?; +> - what bad consequences will appear if I remove those checks and +> prohibition?. This is nasty to allow all jailed process to open RAW sockets. You can use CerbNG to allow only selected jailed process to open RAW socket. General policy is here: http://cerber.sourceforge.net/policies/jailed-icmp.cb but you can easly rewrite it to allow only selected process for this. Project's page is here: http://cerber.sourceforge.net And rest of policies: http://cerber.sourceforge.net/policies/ CerbNG works only on 4-STABLE systems for now and there will be soon 1.0-RC2 version, but I've started porting it to -CURRENT. --=20 Pawel Jakub Dawidek pawel@dawidek.net UNIX Systems Programmer/Administrator http://garage.freebsd.pl Am I Evil? Yes, I Am! http://cerber.sourceforge.net --rZOkLKku1JyljZ3B Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iQCVAwUBPthdSD/PhmMH/Mf1AQEJWAP/bjwoJ9e3oDeZN1Ab2V0qRdSh1T+JBJY7 1YzOtetjZMwU7e3jSAxNZ4rAlzpqC1htVKLf+tjSiSpS71xxctS/pFMo6VFVTXGF kpThbz+YYEHTnrvQ456aMBw9/dZR9hiMdnh0qG6SNZbdBRorf1+zYab0KNWIazxm bM+DjvL0tyM= =iLaV -----END PGP SIGNATURE----- --rZOkLKku1JyljZ3B--