Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp3323707ybf; Tue, 3 Mar 2020 03:59:51 -0800 (PST) X-Google-Smtp-Source: ADFU+vtMUj/O3MAF92rIqBa0cWjiwGua97VPZiStoh64Rh9PPeDd3j+bOkMwQrxtuGSrwXs8uMg6 X-Received: by 2002:a9d:4782:: with SMTP id b2mr3086118otf.66.1583236791767; Tue, 03 Mar 2020 03:59:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583236791; cv=none; d=google.com; s=arc-20160816; b=VWRYZx9kK/EfhrwBJz+5hIbxEpEncUdQHM+EaGMxCiRbnrFMSZWhluKWC7M9dystT1 28NeMyZLe5M0N7GvUiOK1mwTDMNVbmIAVyDoeRYleSnQcQze44pCojzJ8zDkR7Xh8VSx 2Wsu0avmd1jhE9/GfI4C8bwxNB2xiTuKMhWatkeBWDCXuxV3jmgWvd0sm3OXvqU3lu/x taV+EbH6fZ7DJF8xJHpBoIIxDWuXLaPg662tEF1dqadAtQeNoBWisctPbUmlOw/IkPDf DQRNUutSIGt/u/dImKsczkEV+CZ87S6eqFBrDiRePGLAUIYGoFcJQBXVQUiLp51vFiSS mt9A== 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=sbwnaGHRWM9VO+1Zkfdw3LTUMs2OYuXV49P0joc3bUA=; b=iuYS6Lvb+HN4TA5GPer7CV5ANMVjnBqPf5FYYJfJGzIEKXy2anOxp0FmR5WAd10unC WKwV0LrwkjYXsG+kMQY88XC7Cvs74YPCbgpFW0G6tbRr3raGGRdsG3IFXHsP3v1D0Iq5 PQxT7TiM6t1Yg3bgNqIfMS5tJBd5/A1wMMWRGWJN0axZVttPkm1/OjZybrkuOROQf8G3 GYwEuXRdh6WU6ihLmrnnqHETszwnvbjTMJlGP4iqcNUAPQM1cVu3GlWQNgbK08q9fJdO U4Fb2hVWeiv5Z2vzOFu+YkbIiePfzAJ/Vbm2/2FL3MUhhWkOdARlrCj6hRlwg5xAIAaH xB/A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d10si8330395oti.226.2020.03.03.03.59.40; Tue, 03 Mar 2020 03:59:51 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729118AbgCCL5D (ORCPT + 99 others); Tue, 3 Mar 2020 06:57:03 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:39494 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725818AbgCCL5D (ORCPT ); Tue, 3 Mar 2020 06:57:03 -0500 Received: from ip5f5bf7ec.dynamic.kabel-deutschland.de ([95.91.247.236] helo=wittgenstein) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1j96AO-0000th-AQ; Tue, 03 Mar 2020 11:56:52 +0000 Date: Tue, 3 Mar 2020 12:56:51 +0100 From: Christian Brauner To: Miklos Szeredi Cc: David Howells , Ian Kent , James Bottomley , Steven Whitehouse , Miklos Szeredi , viro , Christian Brauner , Jann Horn , "Darrick J. Wong" , Linux API , linux-fsdevel , lkml , Greg Kroah-Hartman Subject: Re: [PATCH 00/17] VFS: Filesystem information and notifications [ver #17] Message-ID: <20200303115651.j5q7bsvzu5mstgw4@wittgenstein> References: <107666.1582907766@warthog.procyon.org.uk> <0403cda7345e34c800eec8e2870a1917a8c07e5c.camel@themaw.net> <1509948.1583226773@warthog.procyon.org.uk> <20200303100045.zqntjjjv6npvs5zl@wittgenstein> <20200303102541.diud7za3vvjvqco4@wittgenstein> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 03, 2020 at 12:33:48PM +0100, Miklos Szeredi wrote: > On Tue, Mar 3, 2020 at 11:25 AM Christian Brauner > wrote: > > > > On Tue, Mar 03, 2020 at 11:13:50AM +0100, Miklos Szeredi wrote: > > > On Tue, Mar 3, 2020 at 11:00 AM Christian Brauner > > > wrote: > > > > > More magic links to beam you around sounds like a bad idea. We had a > > > > bunch of CVEs around them in containers and they were one of the major > > > > reasons behind us pushing for openat2(). That's why it has a > > > > RESOLVE_NO_MAGICLINKS flag. > > > > > > No, that link wouldn't beam you around at all, it would end up in an > > > internally mounted instance of a mountfs, a safe place where no > > > > Even if it is a magic link to a safe place it's a magic link. They > > aren't a great solution to this problem. fsinfo() is cleaner and > > simpler as it creates a context for a supervised mount which gives the a > > managing application fine-grained control and makes it easily > > extendable. > > Yeah, it's a nice and clean interface in the ioctl(2) sense. Sure, > fsinfo() is way better than ioctl(), but it at the core it's still the > same syscall multiplexer, do everything hack. In contrast to a generic ioctl() it's a domain-specific separate syscall. You can't suddenly set kvm options through fsinfo() I would hope. I find it at least debatable that a new filesystem is preferable. And - feel free to simply dismiss the concerns I expressed - so far there has not been a lot of excitement about this idea. > > > Also, we're apparently at the point where it seems were suggesting > > another (pseudo)filesystem to get information about filesystems. > > Implementation detail. Why would you care? I wouldn't call this an implementation detail. That's quite a big design choice; it's a separate fileystem. In addition, implementation details need to be maintained. Christian