From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f65.google.com ([74.125.82.65]:36527 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932245AbcLIJOP (ORCPT ); Fri, 9 Dec 2016 04:14:15 -0500 Received: by mail-wm0-f65.google.com with SMTP id m203so2639320wma.3 for ; Fri, 09 Dec 2016 01:14:14 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: <87inswm9sg.fsf@drapion.f-secure.com> From: Amir Goldstein Date: Fri, 9 Dec 2016 11:14:13 +0200 Message-ID: Subject: Re: [RFC][PATCH 0/7] fanotify: add support for more events To: Marko Rauhamaa Cc: linux-fsdevel Content-Type: text/plain; charset=UTF-8 Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Thu, Oct 13, 2016 at 9:42 PM, Amir Goldstein wrote: > On Thu, Oct 13, 2016 at 8:35 PM, Marko Rauhamaa > wrote: >> >> Amir Goldstein: >>> This series is a prep work for using fanotify to monitor all events in >>> a file system with a single watch. >>> >>> [...] >>> >>> I am posting this WIP to get feedback on the idea and to find out if >>> there are any users out there interested in the improved fanotify >>> capabilities and/or in the super block monitoring use case. >> >> My employer certainly is in need of monitoring a whole filesystem. We >> have noticed that namespaces evade monitoring via FAN_MARK_MOUNT. I was >> thinking something like a FAN_MARK_FILESYSTEM would be needed. >> > > I have a POC of monitoring entire file system, while filtering to namespace > only the events that should be visible to its mounts. > I need to get the patches into shape and shake them a bit, then > I will post them and I am hoping that others could test them for their > use case as well. > Marko, The super block watch patches are available on my git tree at: https://github.com/amir73il/linux/commits/fanotify_sb-4.9 I won't bother to post them to the list unless someone shows interest. Note that beyond the ability to watch a file system, they also provide all the legacy intotify events (create/remove), so maybe that's also useful to you guys. Anyway, if you are interested and willing to give them a try please send me feedback. Thanks, Amir.