Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4678936ybv; Wed, 26 Feb 2020 01:11:44 -0800 (PST) X-Google-Smtp-Source: APXvYqxmgKYEZvywuLYDfV6F0tiAEem5MfHnIX8PXzXb8cKLD0HZ0s/2Dy5miF7UppW2QQD5tv3q X-Received: by 2002:a9d:7f8d:: with SMTP id t13mr2000945otp.175.1582708304600; Wed, 26 Feb 2020 01:11:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582708304; cv=none; d=google.com; s=arc-20160816; b=TInkLITNWHZw7WdpKS5OltyBxkZOTgrbjA7wEP8vjhCQRlZOV3WPTn0k5+wG8ljeN4 6hIM4ulUtxnr5nmkTiz/tmrl8IrUuiQhGOWaMXsr8GsqCmyZ8cGKgngkGeb6gae0WUg5 J6Phz/i9z1Niu5JxkpdRMw8QYFA96V+4T/A8dLntgkuhiwLmWn+IpBvofEhkhL0Qcusv bCTugZVzS2MABThdwqvKSwlHwpgNiKvYhf8M8nF6PlZ6Qy2l32WGbdKN0CuMHpc2YhQz kfooCrXR1YezahnpAvo9PbyE3B+2MgxsMsUTW4jHv2mRFK8li/3i6hisj7oAOHC4lu59 4ovQ== 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=oEqkrC4VLq8DaEUXXUlw4qM+t78tq2tEXmDFeRSdK/U=; b=PWKq6bpqWN6dir5XZbk4DJSanS3ISN3UBvlQ2UxQ0BiGOpQzli13v/B9obAuouonbN s3xvC2OQeCzxFg5eX5dc5SkuGZdw3YqjGKDitFTEWqoDJhKVi3gQ66c6MIsO8Kmds/IP fo6u36X8FRRLC8DWp/mtAMFRBQPqIkiw3+b0QuxKeuWGWLGb/FuvYRSGIQqtkbXWX5/B MwulQPw6ws8p022EKFgoIjp6vWVesT4Oj7xxnl9fv9rX6B9p0xnONDhcVlXF8wB3MtcV iqQPUMhFf9QRz59CTnGHEAmfroD0Yf0L0G3Zo3fNYou9zm0uNR3V4anyJZXabQjMnPkf igzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=LYX8khLq; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d199si842128oib.135.2020.02.26.01.11.32; Wed, 26 Feb 2020 01:11:44 -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=pass header.i=@redhat.com header.s=mimecast20190719 header.b=LYX8khLq; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727686AbgBZJLR (ORCPT + 99 others); Wed, 26 Feb 2020 04:11:17 -0500 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:27898 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727075AbgBZJLQ (ORCPT ); Wed, 26 Feb 2020 04:11:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1582708275; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=oEqkrC4VLq8DaEUXXUlw4qM+t78tq2tEXmDFeRSdK/U=; b=LYX8khLquEaMYAmpi8dZX3a+4Tcgs9mZJYjMH41sxOF7boBZdvJzapJhBKV1BVnE/L8F8/ ZS7/GiU4Ss5VGv1pjHMadZKd2jnrK+Fq1Qchy0tT/2t0s5RfI3MFC8/J3fBwDJT1feTUyj ZrDunVqgNfN4YYsXgwirggJqlOGEjGQ= Received: from mail-qv1-f71.google.com (mail-qv1-f71.google.com [209.85.219.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-17-oezANsZ2PLuPBrnyGO-RXA-1; Wed, 26 Feb 2020 04:11:13 -0500 X-MC-Unique: oezANsZ2PLuPBrnyGO-RXA-1 Received: by mail-qv1-f71.google.com with SMTP id p3so3078623qvt.9 for ; Wed, 26 Feb 2020 01:11:13 -0800 (PST) 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=oEqkrC4VLq8DaEUXXUlw4qM+t78tq2tEXmDFeRSdK/U=; b=DeKnO6ePX8iyj5TVkvlbRWbsRV6zIL2K7VI7IHwJ2CMVyWvgeMUciApzxLEzdxH7FV d41XmDbPyIB7bTjMXxAvQTxQLY4rI/o2Q/rbKiksviKBVJU1K/zik0TM1EknbEIv7q3j U3S+MbfcI094s74m1uCLxNmv2Rg+AiLVjCIWrZmqd7GmwRhLWmwZ98SKv9UfH6phMkwV 8ZKUCFwcGnM7gawg7YHzqs9Fdtr5ACwd6etreno+g1XuVPb+OLMJ8asQI2JKQQrbiX3C jc7iv2p+Ojpy+LP0B4dvpF1ZDk+MlXIXDvnUNOlHWNXlyQp8UHyWR7npOYPmRmxoHsFO XFKg== X-Gm-Message-State: APjAAAWgTgDO5HnuvKfx9lj6b/SXAjML8fi/ARPVVjqXY30ZnAP5ZV/D JX3e6YRWaHvwa/Zk/3KWS7TrQ9vXrG9YN078KeFaSbgmgcwr6Z2tuqYx9h8zSnfSSa6PxZv950t V8hyRw2u6kWCXccv5NdiodDdjB8PJYBRoPdEW9uzO X-Received: by 2002:a37:40d2:: with SMTP id n201mr4423908qka.211.1582708273449; Wed, 26 Feb 2020 01:11:13 -0800 (PST) X-Received: by 2002:a37:40d2:: with SMTP id n201mr4423885qka.211.1582708273224; Wed, 26 Feb 2020 01:11:13 -0800 (PST) MIME-Version: 1.0 References: <158230810644.2185128.16726948836367716086.stgit@warthog.procyon.org.uk> <1582316494.3376.45.camel@HansenPartnership.com> <1582556135.3384.4.camel@HansenPartnership.com> <1582644535.3361.8.camel@HansenPartnership.com> In-Reply-To: <1582644535.3361.8.camel@HansenPartnership.com> From: Miklos Szeredi Date: Wed, 26 Feb 2020 10:11:02 +0100 Message-ID: Subject: Re: [PATCH 00/17] VFS: Filesystem information and notifications [ver #17] To: James Bottomley Cc: Steven Whitehouse , Miklos Szeredi , David Howells , viro , Ian Kent , Christian Brauner , Jann Horn , "Darrick J. Wong" , Linux API , linux-fsdevel , lkml 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, Feb 25, 2020 at 4:29 PM James Bottomley wrote: > The other thing a file descriptor does that sysfs doesn't is that it > solves the information leak: if I'm in a mount namespace that has no > access to certain mounts, I can't fspick them and thus I can't see the > information. By default, with sysfs I can. That's true, but procfs/sysfs has to deal with various namespacing issues anyway. If this is just about hiding a number of entries, then I don't think that's going to be a big deal. The syscall API is efficient: single syscall per query instead of several, no parsing necessary. However, it is difficult to extend, because the ABI must be updated, possibly libc and util-linux also, so that scripts can also consume the new parameter. With the sysfs approach only the kernel needs to be updated, and possibly only the filesystem code, not even the VFS. So I think the question comes down to: do we need a highly efficient way to query the superblock parameters all at once, or not? Thanks, Miklos