Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp8156750ybi; Thu, 6 Jun 2019 07:37:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqwAiVWOuMbJJRJ18bUyLlqobXSUHcMGC9aR90QCODkt17nu0YsavPUoM0FSgh28gXwARt2m X-Received: by 2002:a63:7e43:: with SMTP id o3mr3726035pgn.450.1559831846968; Thu, 06 Jun 2019 07:37:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559831846; cv=none; d=google.com; s=arc-20160816; b=Hxbsb1NQHEd3W1g+93/Wuu3hRzLqaWOQWwtgerjdveKZCWIHxYJGvJq2T1RorRixUh fXNiaohup/nmM7c8baQ0krK0UmkLJiVS7BiI70srKrgVSuQJIzSDM+/ewTqNXvKNRGHY p1OJA2Ew/FRO4NBTx7dhuHZSmZWJ4IHbPuWDRxvq95xdrIQVn1+C32l2MXJyvjPbfTZU 8weg36V7IXoZ5gun9fCo6e6zdBihoTvpio+tStnNQJssNTAAiZOTY67uhJKhjjuxloMa 2cUapXFIWwwhLTJ87FdUdJJsURr7z9EAFB0veFXc5gd8MNwqwgnz0creMc/nQZmfZURp Q6dA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=uliRl25tF2O1ExnxNI5OeemcUVuWp/hZHc1pbbwUvtw=; b=KLlC/ntgcLNSFpEkDavt2sboiiVtaErj/9RNUU3xNPkBXhbbfT132j1sQVAlaZQzWy FxdphpnMXsLZqpGgD2SUG582kkT0zL5sA8yvdzhUqwcNjNZ86D2pN+ckbTpWsbPd6//i lcGN/Bzc6vQ+L+yMUy5g5gHttcbS4kF0QR22+88+9BaI/SvDm+thL0L4Y6+oKyam3KZf t5kAwm0C1ZFGy+bzMZAr7S5YbUs72c7eg3ExeoUNYpg9ul9oWrj+68kaHiTx6tub2NKY IxUNJ1O+2n/u/eMtwsfGdyYNsj3QMIvcp6UBRSu+kPBcgLrPSvNdMGPOX42fjsxt1ZfV VtzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brauner.io header.s=google header.b=MBprUpp1; 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 n65si2092442pjc.54.2019.06.06.07.37.08; Thu, 06 Jun 2019 07:37:26 -0700 (PDT) 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=@brauner.io header.s=google header.b=MBprUpp1; 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 S1728842AbfFFOed (ORCPT + 99 others); Thu, 6 Jun 2019 10:34:33 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:33338 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728796AbfFFOec (ORCPT ); Thu, 6 Jun 2019 10:34:32 -0400 Received: by mail-pf1-f194.google.com with SMTP id x15so1644762pfq.0 for ; Thu, 06 Jun 2019 07:34:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brauner.io; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=uliRl25tF2O1ExnxNI5OeemcUVuWp/hZHc1pbbwUvtw=; b=MBprUpp1e5VKUe+T74LmM6i0Ek4WwUD8SNxviqye9qRCXjeQD1AN2cQwMjMeLOJAFU gJe75uGQWbYYHmyw2x5BvtU5ncrcFbkHTESEAOA1dzwscKIbkZKdQNpmnqFhKnBmc3zQ EGOBnm10P7Akkmw3M7Phxq/g7hqCRhz0eQ+B4qicHZCKeanltJAA1IX5vvqIsNB6EU1V ffagFv4poPie3Oi6fc6m4FO/7bfLmtOyca95WSoReHg1f/VgYW1TP1sk+8d73DWcuplv eVzc1ya3v/2UecxqoJ+Sq8Lb0zxNK7qHeBb63mjflhEmiQno3Q0gxTPT2+o1bJzLxiLZ ZnSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=uliRl25tF2O1ExnxNI5OeemcUVuWp/hZHc1pbbwUvtw=; b=STLcVmsdhyl9Q7O7syqNvpdu+qR38No8e7e/cWwYtlhlBETTmshH4AyyK47rzmLCQ4 7x2TcxlVKJnm5ALfZHBr0WRJdSU2augeeFHBIJBOzxDGlcC2ALtWSKCb6xhZc82/aWIr rlt2J9gp77pyT9t63SWCmjcCBFbxk09w0/MOZQ+kK9jPY7N+Ob9XgT2RbW/KDgQ+tgy+ J8JoJZiwe3gYtOa8zsSNQKk53xqJT9TP2S0IWWLkD0IpKcKn7VFSEZtvidYh636Iob76 gGDN2Mwpe2Gv484Akl0co7FoBWNwrDeDxFWtxP1PeYJliuWhfPmrgnY2Yc3LOrLQdk0x Jcfg== X-Gm-Message-State: APjAAAXG84FcyMXXbvvA9xaWK8QV3UJ/tTygoj5mOnhWc6ioj+jwTVDe OdTiDAgPyEU37O7MqDJkSMEENw== X-Received: by 2002:a63:dd05:: with SMTP id t5mr3525537pgg.229.1559831671810; Thu, 06 Jun 2019 07:34:31 -0700 (PDT) Received: from brauner.io ([172.56.30.175]) by smtp.gmail.com with ESMTPSA id l7sm2552259pfl.9.2019.06.06.07.34.25 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 06 Jun 2019 07:34:31 -0700 (PDT) Date: Thu, 6 Jun 2019 16:34:21 +0200 From: Christian Brauner To: David Howells Cc: viro@zeniv.linux.org.uk, Greg Kroah-Hartman , Casey Schaufler , linux-usb@vger.kernel.org, raven@themaw.net, linux-fsdevel@vger.kernel.org, linux-api@vger.kernel.org, linux-block@vger.kernel.org, keyrings@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC][PATCH 00/10] Mount, FS, Block and Keyrings notifications [ver #3] Message-ID: <20190606143420.hxjximmhigpa2nti@brauner.io> References: <155981411940.17513.7137844619951358374.stgit@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <155981411940.17513.7137844619951358374.stgit@warthog.procyon.org.uk> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 06, 2019 at 10:41:59AM +0100, David Howells wrote: > > Hi Al, > > Here's a set of patches to add a general variable-length notification queue > concept and to add sources of events for: > > (1) Mount topology events, such as mounting, unmounting, mount expiry, > mount reconfiguration. > > (2) Superblock events, such as R/W<->R/O changes, quota overrun and I/O > errors (not complete yet). > > (3) Key/keyring events, such as creating, linking and removal of keys. > > (4) General device events (single common queue) including: > > - Block layer events, such as device errors > > - USB subsystem events, such as device/bus attach/remove, device > reset, device errors. > > One of the reasons for this is so that we can remove the issue of processes > having to repeatedly and regularly scan /proc/mounts, which has proven to > be a system performance problem. To further aid this, the fsinfo() syscall > on which this patch series depends, provides a way to access superblock and > mount information in binary form without the need to parse /proc/mounts. > > > LSM support is included, but controversial: Apart from the LSM/security controversy here the general direction of this patchset is pretty well received it seems. Imho, having a notification mechanism like this is a very good thing for userspace. So would be great if there'd be a consensus on the LSM bits. Christian