Return-Path: linux-nfs-owner@vger.kernel.org Received: from lxorguk.ukuu.org.uk ([81.2.110.251]:40979 "EHLO lxorguk.ukuu.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754786Ab2HJShH (ORCPT ); Fri, 10 Aug 2012 14:37:07 -0400 Date: Fri, 10 Aug 2012 19:40:28 +0100 From: Alan Cox To: "H. Peter Anvin" Cc: Stanislav Kinsbursky , Trond.Myklebust@netapp.com, davem@davemloft.net, linux-nfs@vger.kernel.org, eric.dumazet@gmail.com, xemul@parallels.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, bfields@fieldses.org, viro@zeniv.linux.org.uk, tim.c.chen@linux.intel.com, devel@openvz.org Subject: Re: [RFC PATCH 0/2] net: connect to UNIX sockets from specified root Message-ID: <20120810194028.792f29f1@pyramind.ukuu.org.uk> In-Reply-To: <5025537D.9060300@zytor.com> References: <20120810125701.7115.71612.stgit@localhost.localdomain> <50254FA6.3060806@zytor.com> <20120810192628.79a34d28@pyramind.ukuu.org.uk> <5025537D.9060300@zytor.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-nfs-owner@vger.kernel.org List-ID: > > AF_UNIX between roots raises some interesting semantic questions when > > you begin passing file descriptors down them as well. > > Why is that? A file descriptor carries all that information with it... Things like fchdir(). It's not a machine breaking problem but for containers as opposed to chroot we need to be clear what the expected isolation sematics are. Agreed on open() for sockets.. the lack of open is a Berklix derived pecularity of the interface. It would equally be useful to be able to open "/dev/socket/ipv4/1.2.3.4/1135" and the like for scripts and stuff That needs VFS changes however so you can pass the remainder of a path to a device node. It also lets you do a lot of other sane stuff like open /dev/ttyS0/9600/8n1