Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2341EC433EF for ; Thu, 18 Nov 2021 18:55:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 031A461B1E for ; Thu, 18 Nov 2021 18:55:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232543AbhKRS60 (ORCPT ); Thu, 18 Nov 2021 13:58:26 -0500 Received: from out02.mta.xmission.com ([166.70.13.232]:33592 "EHLO out02.mta.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229600AbhKRS6X (ORCPT ); Thu, 18 Nov 2021 13:58:23 -0500 Received: from in01.mta.xmission.com ([166.70.13.51]:36828) by out02.mta.xmission.com with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1mnmZ7-00Dk1O-1D; Thu, 18 Nov 2021 11:55:21 -0700 Received: from ip68-227-160-95.om.om.cox.net ([68.227.160.95]:47584 helo=email.froward.int.ebiederm.org.xmission.com) by in01.mta.xmission.com with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1mnmZ5-003dsG-1S; Thu, 18 Nov 2021 11:55:19 -0700 From: ebiederm@xmission.com (Eric W. Biederman) To: "Yordan Karadzhov \(VMware\)" Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, viro@zeniv.linux.org.uk, rostedt@goodmis.org, mingo@redhat.com, hagen@jauu.net, rppt@kernel.org, James.Bottomley@HansenPartnership.com, akpm@linux-foundation.org, vvs@virtuozzo.com, shakeelb@google.com, christian.brauner@ubuntu.com, mkoutny@suse.com, Linux Containers In-Reply-To: <20211118181210.281359-1-y.karadz@gmail.com> (Yordan Karadzhov's message of "Thu, 18 Nov 2021 20:12:06 +0200") References: <20211118181210.281359-1-y.karadz@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Date: Thu, 18 Nov 2021 12:55:07 -0600 Message-ID: <87a6i1xpis.fsf@email.froward.int.ebiederm.org> MIME-Version: 1.0 Content-Type: text/plain X-XM-SPF: eid=1mnmZ5-003dsG-1S;;;mid=<87a6i1xpis.fsf@email.froward.int.ebiederm.org>;;;hst=in01.mta.xmission.com;;;ip=68.227.160.95;;;frm=ebiederm@xmission.com;;;spf=neutral X-XM-AID: U2FsdGVkX19CHNrH0EbIYtS7glLiHudcKRXMiScCSek= X-SA-Exim-Connect-IP: 68.227.160.95 X-SA-Exim-Mail-From: ebiederm@xmission.com Subject: Re: [RFC PATCH 0/4] namespacefs: Proof-of-Concept X-SA-Exim-Version: 4.2.1 (built Sat, 08 Feb 2020 21:53:50 +0000) X-SA-Exim-Scanned: Yes (on in01.mta.xmission.com) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Adding the containers mailing list which is for discussions like this. "Yordan Karadzhov (VMware)" writes: > We introduce a simple read-only virtual filesystem that provides > direct mechanism for examining the existing hierarchy of namespaces > on the system. For the purposes of this PoC, we tried to keep the > implementation of the pseudo filesystem as simple as possible. Only > two namespace types (PID and UTS) are coupled to it for the moment. > Nevertheless, we do not expect having significant problems when > adding all other namespace types. > > When fully functional, 'namespacefs' will allow the user to see all > namespaces that are active on the system and to easily retrieve the > specific data, managed by each namespace. For example the PIDs of > all tasks enclosed in the individual PID namespaces. Any existing > namespace on the system will be represented by its corresponding > directory in namespacesfs. When a namespace is created a directory > will be added. When a namespace is destroyed, its corresponding > directory will be removed. The hierarchy of the directories will > follow the hierarchy of the namespaces. It is not correct to use inode numbers as the actual names for namespaces. I can not see anything else you can possibly uses as names for namespaces. To allow container migration between machines and similar things the you wind up needing a namespace for your names of namespaces. Further you talk about hierarchy and you have not added support for the user namespace. Without the user namespace there is not hierarchy with any namespace but the pid namespace. There is definitely no meaningful hierarchy without the user namespace. As far as I can tell merging this will break CRIU and container migration in general (as the namespace of namespaces problem is not solved). Since you are not solving the problem of a namespace for namespaces, yet implementing something that requires it. Since you are implementing hierarchy and ignoring the user namespace which gives structure and hierarchy to the namespaces. Since this breaks existing use cases without giving a solution. Nacked-by: "Eric W. Biederman" Eric