Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2369337pxa; Fri, 7 Aug 2020 09:26:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0qYtkoQ6KBCCC+pgI86LefXZ1ye+mna4Adiw6VRxlWf0G1QlQsCyy+kgUL4thsraaOc8K X-Received: by 2002:a05:6402:1ac8:: with SMTP id ba8mr9200658edb.316.1596817601403; Fri, 07 Aug 2020 09:26:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596817601; cv=none; d=google.com; s=arc-20160816; b=o9ru0L6vMebesj5abh9uhJB90AXPx4FD46yrZSV5fvJnEB+lOvMJ+kFs1IhcxRUuwi OO5S1Ch6k8Ix35kuNNuZ+ffIIunF+PH5aWoj74G9S2+3TxSrQ3YSiBCGvqkli2ud6P6I zbyyISiMHkpYErjpbAyOHD5GDQ2nDSRAdtlhlOwZ++RRFZpZiCc5xk5lIkZ+c5z6su4t Bl/xuiLY0mhnAE6aj5tpHuX1BKNa6eqg+0h2ENg+wLeTyp+pLJB1KH5knDwNhJmGWoBN WIZebo/3RYQdIqLQ2iNpJ4YLZlp8AFhhL0dAVpAlJMp7awuaEXr2DERN6RdPag+sQDma /doQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=nhvk6ZTUpio/xCFw9kWL/ue/PDXwzMjtDxMu5ME2IME=; b=0bkMcgy3XT7+ny30FvoLDD9xknklhDDnuQ0BoTu0VDqnEB8EJEflWKdApwoySpiOCF GztMLhXp4TsVyZb6+Gv8YBnQCAfCUQPeGpIT4gmo48D1kgRvPxD+AB/XrXKA7cZUesj1 Mk13mSKZUJItJ9mw5nyITqcw6S3bTxoKpXlEvGbtJmbbkwCFtFNQKuCLE3AR1L9SMZaU Z2uZ3+ZIMF/6vF1fBm5gW2Ktj6adPCqmVUvd8FyFmAcdTuqdirGpvqhjvCCxfAxAc/0l gq9tm+APZXW9Ppj2I4ILukfaqMxOIqm4QxMOOKsthBK6QAy775fWBT1Tc23xNcQbJPPa AASQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s19si5644270ejc.298.2020.08.07.09.26.17; Fri, 07 Aug 2020 09:26:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727872AbgHGQXN (ORCPT + 99 others); Fri, 7 Aug 2020 12:23:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726664AbgHGQXL (ORCPT ); Fri, 7 Aug 2020 12:23:11 -0400 Received: from ZenIV.linux.org.uk (zeniv.linux.org.uk [IPv6:2002:c35c:fd02::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E788C061756; Fri, 7 Aug 2020 09:23:11 -0700 (PDT) Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1k4597-00BE3G-Tq; Fri, 07 Aug 2020 16:23:05 +0000 Date: Fri, 7 Aug 2020 17:23:05 +0100 From: Al Viro To: "Enrico Weigelt, metux IT consult" Cc: "linux-kernel@vger.kernel.org" , "linux-fsdevel@vger.kernel.org" Subject: Re: srvfs: file system for posting open file descriptors into fs namespace Message-ID: <20200807162305.GT1236603@ZenIV.linux.org.uk> References: <55ef0e9a-fb70-7c4a-e945-4d521180221c@metux.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <55ef0e9a-fb70-7c4a-e945-4d521180221c@metux.net> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 07, 2020 at 01:09:30PM +0200, Enrico Weigelt, metux IT consult wrote: > Hello folks, > > > here's the first version of my "srvfs" implementation - a synthentic > filesystem which allows a process to "publish" an open file descriptor > into the file system, so other processes can continue from there, with > whatever state the fd is already in. > > This is a concept from Plan9. The main purpose is allowing applications > "dialing" some connection, do initial handshakes (eg. authentication) > and then publish the connection to other applications, that now can now > make use of the already dialed connection. Yeah, but... Linux open() always gets a new struct file instance; how do you work around that? Some variant of ->atomic_open() API change? Details, please.