Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp6188305ybi; Wed, 29 May 2019 04:18:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqzsIEKCjTRbH8xWUw/YNymsPIQ9idhMu5PDZWCc8pAXQwqwKGFKlO0AoeO3MwYKQLaPjsvn X-Received: by 2002:a17:90a:5d0a:: with SMTP id s10mr11382145pji.94.1559128702881; Wed, 29 May 2019 04:18:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559128702; cv=none; d=google.com; s=arc-20160816; b=t8i8YckTVPad5tBEbw1/cQnRE1c/8NXpv5IipErjwUBY/pi5vqev6i9p3DEbWU6LK1 Xpq5hwVAeq35ulA2FeCfX5MhRiThc6prEkgOYMfKpZg45MevWmt1tlbaJajAPZL3QvoG DX0Zcjs8QAUUS3ad7j1jq2JogUZqM8a5K5BGMGDirrV2L3s6EltSlB3/bm4szGKELaZK Exx91hE8DJCxyqvY6mDPoLmhpSZjnfvWMkStWEhCmLZZVDTNJ5lDMQpjasKIFyhNwSrG ybYlAJBik8v5xl4fb1axRVbMcez/bArA10vwHZGpVESQUF9hvFQeZiYWTBSpAkqtXVcx +cUQ== 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-id:mime-version :subject:cc:to:references:in-reply-to:from:organization; bh=8zSsBjqMJbGsvZhXHgLfu1HnSQ9nqfvMn+0fOvDImio=; b=ckDGaP/+bqfBW8KOU+WBr4NDXxwVBSPIJR6JnMNUxNTQn7N2cG0DrYhjtS+31MZbQM StOad8HltqpziBTb4x30BxJmUOaaSyeD+KxrBMXCH1xuzbE76AAYCGjGAaoZKntFxBU/ HhdwnWOXYoCZtBnw0Nxl03iT9KdmyaGF0uIz2wc7N1f5bRMMTSZ+brJcl0TRn9lJTyEc NE1flda3OrHAqhN3pJoXbRz1WQhwR+bTBUWKOF7iWeQskvHXXtfoSKwKN77y0RRIP2vg M+D5hXi/PFq4L6deK3/9HgFtSfiZIwkS16QABITlsPyAqS9aeGDzGY/B6IHDXF0CVt/X B7yQ== 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 u7si24401545pls.286.2019.05.29.04.18.06; Wed, 29 May 2019 04:18:22 -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 S1726855AbfE2LQa (ORCPT + 99 others); Wed, 29 May 2019 07:16:30 -0400 Received: from mx1.redhat.com ([209.132.183.28]:45834 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726787AbfE2LQa (ORCPT ); Wed, 29 May 2019 07:16:30 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0C786300CA98; Wed, 29 May 2019 11:16:30 +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 4D7B55D756; Wed, 29 May 2019 11:16:28 +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: <155905930702.7587.7100265859075976147.stgit@warthog.procyon.org.uk> <155905933492.7587.6968545866041839538.stgit@warthog.procyon.org.uk> <10418.1559084686@warthog.procyon.org.uk> To: Jann Horn Cc: dhowells@redhat.com, Al Viro , raven@themaw.net, linux-fsdevel , Linux API , linux-block@vger.kernel.org, keyrings@vger.kernel.org, linux-security-module , kernel list Subject: Re: [PATCH 3/7] vfs: Add a mount-notification facility MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <15838.1559128587.1@warthog.procyon.org.uk> Date: Wed, 29 May 2019 12:16:27 +0100 Message-ID: <15839.1559128587@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.42]); Wed, 29 May 2019 11:16:30 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Jann Horn wrote: > I don't really know. I guess it depends on how it's being used? If > someone decides to e.g. make a file browser that installs watches for > a bunch of mountpoints for some fancy sidebar showing the device > mounts on the system, or something like that, that probably shouldn't > inhibit unmounting... I don't know if that's a realistic use case. In such a use case, I would envision the browser putting a watch on "/". A watch sees all events in the subtree rooted at that point and you must apply a filter that filters them out if you're not interested (filter on WATCH_INFO_IN_SUBTREE using info_filter and info_mask). David