Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp3312862ybf; Tue, 3 Mar 2020 03:45:05 -0800 (PST) X-Google-Smtp-Source: ADFU+vu44Cg4OXZnfTctpdGfRV/el/RshpeqrYQ9jJvCviL0d8cOW2GjTRD0n0Sbimhw3SsCHPmK X-Received: by 2002:a05:6830:1690:: with SMTP id k16mr3198436otr.79.1583235905522; Tue, 03 Mar 2020 03:45:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583235905; cv=none; d=google.com; s=arc-20160816; b=bGSY9zR1mb/7+R1RPQ2EwO80j12P4EvmjTYXsEu99cGD0JP5WyfUTszeQG5laLc7ws IV7/eRWT9nTQwqmGIfWoJYalMkmWy1Q4IYlaQy2LClNhs6IDLI4+EbSzJisGJQeWfZie C4L8WYuitALVzFMdgLkDpi6awzGs7qAERe5vjSyjxzlj21LztLZi4DM6H0D8YvnoM9D1 eSowjbaQssl2zE0vtlGU58XBk8tpooUkzZncW8nhUaoe6VAAVtS6RVxl5DSs66rThWlQ TIGMKf3fv0c1O/RVHfsUDel4TxGXGLp5xtHNfY+Muf7//a+LWniVmzxiXpCvpJtN8PKl rfLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=6byiiSiBg+O9qfUoKK2ksV0ZQAH63X1Hb8rEqsCdvnA=; b=jzl7HWTwURKt996CaOlM4SdEkCH9QaGZf5HLr6TjsU6b/UJSdM48jTMuI82rU+gHs0 W8XgNTOjnnvT/jeMjb96RWwg65cL3wRGukHq+De4/SMFXVO/jKgCssdTzRDyKcMP7qdA TYK0/RSgHcqPjCBZVvXrLPPvYAI5YTUnLWaZyldfxRmrtG1ZSiuKGhvPETgKBlTYH3ts XAHi0E5Jy3G3kkMYLkiOoU+nNey60ZjD5rgHuynoyaNHawtHKYTWMcNcqwiZ66ZXKXDC 5DpLNxc8l4jUp3xMP7xRRFHiJlU26Ha3E3qFKrd71C5AoWagm6+TZu29cn8APvmsOzHg AyZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=BDwb6Aqr; 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 13si7952883oiy.28.2020.03.03.03.44.50; Tue, 03 Mar 2020 03:45:05 -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; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=BDwb6Aqr; 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 S1728965AbgCCLeC (ORCPT + 99 others); Tue, 3 Mar 2020 06:34:02 -0500 Received: from mail-il1-f195.google.com ([209.85.166.195]:42329 "EHLO mail-il1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727972AbgCCLeB (ORCPT ); Tue, 3 Mar 2020 06:34:01 -0500 Received: by mail-il1-f195.google.com with SMTP id x2so2425916ila.9 for ; Tue, 03 Mar 2020 03:34:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=szeredi.hu; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=6byiiSiBg+O9qfUoKK2ksV0ZQAH63X1Hb8rEqsCdvnA=; b=BDwb6Aqrx0xtaZxAiJzRl8XeyjQnOY6DfKQWnfKlSJyw80tDndkNTO1YIRtxXiY32u jX+rF79QYJ93n6uKhvAsKktrD0A98qVn8g0o2FP4zpYgjGgDbSp4ye0NeZ/S6xaEu/9P jinoTbqOhlXGvA2nE26OcaLpGlhLDzhcnIkuA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=6byiiSiBg+O9qfUoKK2ksV0ZQAH63X1Hb8rEqsCdvnA=; b=NPaYDyUkb97MDw407I/fZnR4jm0ltI1dkU9fZ7EOoWC0L7Qh4QIWhXD9BDEFK0tiPA OKQ5Oxn3odOzzqnJ/uflIe+0gY/OLFbi7ppT3eAfqTaTWRfnPGBt9G+btdBAcUsbI7dR z405AwxYKk385vx0D0K+6w/ZjSPSEIsOfLSsFYhjnHxhKt+nSWE3xMv3qT9wddzf9oGF XkJx6TlzGlebT8+HPYd1Zh1dIa7R6as8vyRyomMjtGbuRB1uLSHsLzy/x1pr6jrCuQk8 moDt0ycuQTpc6xWa1Hc5nbwHiom/Q3ZqHBbvMREDIHhNSqQA+n0t3SPhFy4o0X2EHOpS Kq+w== X-Gm-Message-State: ANhLgQ2EqjkwnVhiQ4DZZFHJo0XG2mYA7143vQkjV4NbjtUoh/erMLk7 KJht4Qv0cHKLQuUVLvhCI324lGt+qiLlD+CsjBuqtw== X-Received: by 2002:a92:89cb:: with SMTP id w72mr4195534ilk.252.1583235239625; Tue, 03 Mar 2020 03:33:59 -0800 (PST) MIME-Version: 1.0 References: <1582644535.3361.8.camel@HansenPartnership.com> <20200228155244.k4h4hz3dqhl7q7ks@wittgenstein> <107666.1582907766@warthog.procyon.org.uk> <0403cda7345e34c800eec8e2870a1917a8c07e5c.camel@themaw.net> <1509948.1583226773@warthog.procyon.org.uk> <20200303100045.zqntjjjv6npvs5zl@wittgenstein> <20200303102541.diud7za3vvjvqco4@wittgenstein> In-Reply-To: <20200303102541.diud7za3vvjvqco4@wittgenstein> From: Miklos Szeredi Date: Tue, 3 Mar 2020 12:33:48 +0100 Message-ID: Subject: Re: [PATCH 00/17] VFS: Filesystem information and notifications [ver #17] To: Christian Brauner 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > 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? Thanks, Miklos