Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp8679068ybi; Thu, 6 Jun 2019 17:26:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqwIjZJC9Yenjqo/cWMDhbeWvZ0fpolkd0WEHXzvbJL64OUlheUQx3VJL9J8ilzU9N3Mk/gc X-Received: by 2002:a63:4c54:: with SMTP id m20mr447419pgl.316.1559867209243; Thu, 06 Jun 2019 17:26:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559867209; cv=none; d=google.com; s=arc-20160816; b=zjj7Ip9z/TzKzXusWpGHwwEChhVw5cazZoPvLNpLVmlfY6FnuJWwyKeeuqyvdUzRaM X9jogcWrV0ChJAsJG6Ezd8eZLmq3xKy2zK9dVp/5FqXTXCSp/vStKPZCabK8QQkZN636 BSe4syeRT1ZxJIFYI5ZRBwQXk5SFqRSG4aTk+452NZDNH/bCEEQ8DnJRgGjHe7gNiR6K sBpQ2tV7ytmuV9KJjxNC3ecVYFrlYxo8w6CyMRhDrgO7ru9odO491UwzkM0l81i8bPP/ gylNjAATzglbLE/jfCCEdAv9KBai67/c6bH22MjrGISKfncqnhlKPBp2lsutFIQiqYEp DoXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:content-transfer-encoding :mime-version:subject:cc:to:references:in-reply-to:from:organization; bh=TTqLSR4857r6NTJVrq7GMfwntAlLcAtpNsg0OO9aF6Q=; b=UuqGCr5WcgnI79dJ93hvfFLSZRSMd7esgc4D5KOdJhSbgm2mkV8nL3tCrh0XwgsVGZ socJ0BmiEU9sokAAeR5slttOHEYmUKHd68lDIPqtUA4+lJ1bZWOBLsNs5/x3NVayFnQM GeEOV9ds0Myrw57fvEFG2RR4bmWV0Q9BSNfLnw4b51rkni7AHh3azH+/QK0hgEyQQQC8 cdFvKYtNq4i9HHwgBOmmM/viOtejik3yhlZYFLGY3YQGzjf0kr4BaylICa+BFOrLIZME NzjpeKNVSsNsL/Ngsy/mvvRQCEz0hES5aVOumlQLzksiXp0BLGjDhXLD4byet6wvwbX6 CaAQ== 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; dmarc=fail (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 j12si468786pll.196.2019.06.06.17.26.14; Thu, 06 Jun 2019 17:26:49 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727710AbfFFWiY convert rfc822-to-8bit (ORCPT + 99 others); Thu, 6 Jun 2019 18:38:24 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37018 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726538AbfFFWiX (ORCPT ); Thu, 6 Jun 2019 18:38:23 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C91BE128B5; Thu, 6 Jun 2019 22:38:15 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-120-173.rdu2.redhat.com [10.10.120.173]) by smtp.corp.redhat.com (Postfix) with ESMTP id B67827840D; Thu, 6 Jun 2019 22:38:02 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: References: <155981411940.17513.7137844619951358374.stgit@warthog.procyon.org.uk> <3813.1559827003@warthog.procyon.org.uk> <8382af23-548c-f162-0e82-11e308049735@tycho.nsa.gov> <0eb007c5-b4a0-9384-d915-37b0e5a158bf@schaufler-ca.com> <07e92045-2d80-8573-4d36-643deeaff9ec@schaufler-ca.com> <23611.1559855827@warthog.procyon.org.uk> To: Andy Lutomirski Cc: dhowells@redhat.com, Andy Lutomirski , Casey Schaufler , Stephen Smalley , Al Viro , Greg Kroah-Hartman , USB list , raven@themaw.net, Linux FS Devel , Linux API , linux-block@vger.kernel.org, keyrings@vger.kernel.org, LSM List , LKML , Paul Moore Subject: Re: [RFC][PATCH 00/10] Mount, FS, Block and Keyrings notifications [ver #3] MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Date: Thu, 06 Jun 2019 23:38:01 +0100 Message-ID: <30567.1559860681@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Thu, 06 Jun 2019 22:38:23 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Andy Lutomirski wrote: > I mean: are there cases where some action generates a notification but does > not otherwise have an effect visible to the users who can receive the > notification. It looks like the answer is probably “no”, which is good. mount_notify(). You can get a notification that someone altered the mount topology (eg. by mounting something). A process receiving a notification could then use fsinfo(), say, to reread the mount topology tree, find out where the new mount is and wander over there to have a look - assuming they have the permissions for pathwalk to succeed. David