From owner-svn-src-head@FreeBSD.ORG Fri Jan 9 13:10:07 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 813D2106568F; Fri, 9 Jan 2009 13:10:07 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from mail.cksoft.de (mail.cksoft.de [62.111.66.27]) by mx1.freebsd.org (Postfix) with ESMTP id 385CD8FC1C; Fri, 9 Jan 2009 13:10:07 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from localhost (amavis.str.cksoft.de [192.168.74.71]) by mail.cksoft.de (Postfix) with ESMTP id AF06A41C64A; Fri, 9 Jan 2009 14:10:05 +0100 (CET) X-Virus-Scanned: amavisd-new at cksoft.de Received: from mail.cksoft.de ([62.111.66.27]) by localhost (amavis.str.cksoft.de [192.168.74.71]) (amavisd-new, port 10024) with ESMTP id 1EWkTRm6vIsc; Fri, 9 Jan 2009 14:10:05 +0100 (CET) Received: by mail.cksoft.de (Postfix, from userid 66) id 55C7041C62D; Fri, 9 Jan 2009 14:10: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 1AEB04448DD; Fri, 9 Jan 2009 13:08:50 +0000 (UTC) Date: Fri, 9 Jan 2009 13:08:49 +0000 (UTC) From: "Bjoern A. Zeeb" X-X-Sender: bz@maildrop.int.zabbadoz.net To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org In-Reply-To: <200901091306.n09D6vcB057544@svn.freebsd.org> Message-ID: <20090109130811.E45399@maildrop.int.zabbadoz.net> References: <200901091306.n09D6vcB057544@svn.freebsd.org> X-OpenPGP-Key: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Subject: Re: svn commit: r186948 - in head/sys: netinet netinet6 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Jan 2009 13:10:08 -0000 On Fri, 9 Jan 2009, Bjoern A. Zeeb wrote: > Author: bz > Date: Fri Jan 9 13:06:56 2009 > New Revision: 186948 > URL: http://svn.freebsd.org/changeset/base/186948 > > Log: > Make SIOCGIFADDR and related, as well as SIOCGIFADDR_IN6 and related > jail-aware. Up to now we returned the first address of the interface > for SIOCGIFADDR w/o an ifr_addr in the query. This caused problems for > programs querying for an address but running inside a jail, as the > address returned usually did not belong to the jail. One of the programs hitting this is Samba btw. > Like for v6, if there was an ifr_addr given on v4, you could probe > for more addresses on the interfaces that you were not allowed to see > from inside a jail. Return an error (EADDRNOTAVAIL) in that case > now unless the address is on the given interface and valid for the > jail. > > PR: kern/114325 > Reviewed by: rwatson > MFC after: 4 weeks > > Modified: > head/sys/netinet/in.c > head/sys/netinet6/in6.c -- Bjoern A. Zeeb The greatest risk is not taking one.