From owner-freebsd-jail@FreeBSD.ORG Fri Dec 18 10:40:07 2009 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D00661065696 for ; Fri, 18 Dec 2009 10:40:07 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mail.cksoft.de (mail.cksoft.de [IPv6:2001:4068:10::3]) by mx1.freebsd.org (Postfix) with ESMTP id 8D1CC8FC0A for ; Fri, 18 Dec 2009 10:40:07 +0000 (UTC) Received: from localhost (amavis.fra.cksoft.de [192.168.74.71]) by mail.cksoft.de (Postfix) with ESMTP id 9DF1941C7CD; Fri, 18 Dec 2009 11:40:06 +0100 (CET) X-Virus-Scanned: amavisd-new at cksoft.de Received: from mail.cksoft.de ([192.168.74.103]) by localhost (amavis.fra.cksoft.de [192.168.74.71]) (amavisd-new, port 10024) with ESMTP id tThR3gVeEK2E; Fri, 18 Dec 2009 11:40:05 +0100 (CET) Received: by mail.cksoft.de (Postfix, from userid 66) id DF05341C7D8; Fri, 18 Dec 2009 11:40:05 +0100 (CET) Received: from maildrop.int.zabbadoz.net (maildrop.int.zabbadoz.net [10.111.66.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.int.zabbadoz.net (Postfix) with ESMTP id 94DEF4448EC; Fri, 18 Dec 2009 10:38:48 +0000 (UTC) Date: Fri, 18 Dec 2009 10:38:48 +0000 (UTC) From: "Bjoern A. Zeeb" X-X-Sender: bz@maildrop.int.zabbadoz.net To: Axel Scheepers In-Reply-To: <86fx78vcly.fsf@wolverine.thuis.net> Message-ID: <20091218103417.E86040@maildrop.int.zabbadoz.net> References: <86k4wkveeh.fsf@wolverine.thuis.net> <20091218093231.J86040@maildrop.int.zabbadoz.net> <86fx78vcly.fsf@wolverine.thuis.net> X-OpenPGP-Key: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-jail@freebsd.org Subject: Re: ioctl call freebsd < 7.2 in jail X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Dec 2009 10:40:07 -0000 On Fri, 18 Dec 2009, Axel Scheepers wrote: hi, > "Bjoern A. Zeeb" writes: > >> I think I remember the patch; I guess it was the "samba patch". I can >> extract it for you; not sure if it'll work easily w/o the other >> infrastructure but I'll see what I can do. >> >> I can see no chance that it'll ever make it into 7.1 as an Errata >> Notice though, so you would have to keep patching your system >> yourself. > > > Hi Bjoern, > > I know it won't make it as an errata, that's not a problem. I'm looking > for a way to fix the problem without having to upgrade all our virtual > hosts to 7.2. The machines in question run a mix of freebsd versions, if > it's not to much trouble it's highly appreciated if you can send me some > more information about the patch you mention. Is this the multi-ip jail > patch you talked about in > http://lists.freebsd.org/pipermail/freebsd-jail/2008-October/000488.html well, I think that was the earlier workaround; the multi-IP jail includes one of the patches that actually fix the problem; but the fix for this case really just is a fraction of the change. What I was thinking was this commit to head and the PR mentioned there: http://svn.freebsd.org/viewvc/base?view=revision&revision=186948 Note that 7.1 or earlier won;t have the prison_check_ip4() function, different byte order requirements etc (and not IPv6 support). It's s pretty short thing but has to be "converted" correctly. I might be able to do that later today. /bz -- Bjoern A. Zeeb It will not break if you know what you are doing.