From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick McHardy Subject: Re: [PATCH 5/5] net: Make AF_UNIX per network namespace safe. Date: Sat, 29 Sep 2007 17:47:56 +0200 Message-ID: <46FE73AC.40807@trash.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Cc: David Miller , netdev@vger.kernel.org, Linux Containers To: "Eric W. Biederman" Return-path: Received: from stinky.trash.net ([213.144.137.162]:50837 "EHLO stinky.trash.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755740AbXI2PsS (ORCPT ); Sat, 29 Sep 2007 11:48:18 -0400 In-Reply-To: Sender: netdev-owner@vger.kernel.org List-Id: netdev.vger.kernel.org Eric W. Biederman wrote: > Because of the global nature of garbage collection, and because of the > cost of per namespace hash tables unix_socket_table has been kept > global. With a filter added on lookups so we don't see sockets from > the wrong namespace. > > Currently I don't fold the namesapce into the hash so multiple > namespaces using the same socket name will be guaranteed a hash > collision. That doesn't sound like a good thing :) Is there a reason for not avoiding the collisions?