linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Eric Paris <eparis-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: Tvrtko Ursulin <tvrtko.ursulin-j34lQMj1tz/QT0dZR+AlfA@public.gmane.org>
Cc: Vasily Novikov
	<vasily.novikov-BkmlMuIjteXqlBn2x/YWAg@public.gmane.org>,
	"linux-fsdevel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<linux-fsdevel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	"malware-list-h+Im9A44IAFcMpApZELgcQ@public.gmane.org"
	<malware-list-h+Im9A44IAFcMpApZELgcQ@public.gmane.org>
Subject: Re: A few concerns about fanotify implementation.
Date: Tue, 26 Oct 2010 10:58:45 -0400	[thread overview]
Message-ID: <1288105125.2655.95.camel@localhost.localdomain> (raw)
In-Reply-To: <201010261522.34157.tvrtko.ursulin-j34lQMj1tz/QT0dZR+AlfA@public.gmane.org>

On Tue, 2010-10-26 at 15:22 +0100, Tvrtko Ursulin wrote:
> On Tuesday 26 Oct 2010 14:58:34 Vasily Novikov wrote:
> > > > 2. As I understood it was intended to flush cache via FAN_MARK_FLUSH
> > > > flag but it is currently disabled and there is no notion about it in
> > > > the man page. There are cases when it is necessary to flush all cache,
> > > > for example on anti-malware bases update.
> > >
> > > Where do you see this as disabled?
> >
> > In fanotify_mark syscall flags argument is checked and if FAN_MARK_FLUSH
> > bit is set then EINVAL error is returned.
> 
> [snip]
> 
> >     40  #define FAN_ALL_MARK_FLAGS      (FAN_MARK_ADD |\
> >     41                                   FAN_MARK_REMOVE |\
> >     42                                   FAN_MARK_DONT_FOLLOW |\
> >     43                                   FAN_MARK_ONLYDIR |\
> >     44                                   FAN_MARK_MOUNT |\
> >     45                                   FAN_MARK_IGNORED_MASK |\
> >     46                                   FAN_MARK_IGNORED_SURV_MODIFY)
> >
> > fs/notify/fanotify/fanotify_user.c:
> >    678  SYSCALL_DEFINE(fanotify_mark)(int fanotify_fd, unsigned int
> > flags,
> >    679                                __u64 mask, int dfd,
> >    680                                const char  __user * pathname)
> >    ...
> >    696          if (flags & ~FAN_ALL_MARK_FLAGS)
> >    697                  return -EINVAL;
> 
> You are right. I suspect it is just an accidental omission of FAN_MARK_FLUSH
> from FAN_ALL_MARK_FLAGS. Eric would probably appreciate if you send him a
> patch for this since he is quite busy these days.

I actually started to get the fanotify tree into order last night.  I'll
try to address all of your comments and send my series of patches today.
Thanks SOOOOOOOOOO much for the review!

-Eric

  parent reply	other threads:[~2010-10-26 14:58 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-26 12:13 A few concerns about fanotify implementation Vasily Novikov
2010-10-26 12:58 ` [malware-list] " Tvrtko Ursulin
2010-10-26 13:58   ` Vasily Novikov
2010-10-26 14:22     ` Tvrtko Ursulin
     [not found]       ` <201010261522.34157.tvrtko.ursulin-j34lQMj1tz/QT0dZR+AlfA@public.gmane.org>
2010-10-26 14:58         ` Eric Paris [this message]
2010-10-27  8:54   ` Vasily Novikov
2010-10-27 15:58     ` Eric Paris
     [not found]       ` <1288195134.2655.202.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2011-06-03  9:43         ` Vasily Novikov
     [not found]           ` <4DE8ACAD.2080003-BkmlMuIjteXqlBn2x/YWAg@public.gmane.org>
2011-06-06  9:02             ` Douglas Leeder
2011-06-06  9:19               ` [malware-list] " Vasily Novikov
     [not found]                 ` <4DEC9B86.6060506-BkmlMuIjteXqlBn2x/YWAg@public.gmane.org>
2011-06-06 13:43                   ` Eric Paris
2011-06-06 14:42                     ` [malware-list] " Vasily Novikov
     [not found]                       ` <4DECE76E.4060507-BkmlMuIjteXqlBn2x/YWAg@public.gmane.org>
2011-06-06 15:53                         ` Eric Paris
2011-06-07 12:35                           ` [malware-list] " Vasily Novikov
     [not found]               ` <C511438CDC161C41B3C47B91D99ABA8D37B4B42114-u5UUZ0l8pcxUerCGrXd8jcc3qqyFMPEu@public.gmane.org>
2011-06-06  9:42                 ` Vasily Novikov
2011-06-06 10:27           ` [malware-list] " Lino Sanfilippo
2011-06-06 11:17             ` [malware-list] A few concerns about fanotify implementation ([PATCH] inside) Lino Sanfilippo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1288105125.2655.95.camel@localhost.localdomain \
    --to=eparis-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
    --cc=linux-fsdevel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=malware-list-h+Im9A44IAFcMpApZELgcQ@public.gmane.org \
    --cc=tvrtko.ursulin-j34lQMj1tz/QT0dZR+AlfA@public.gmane.org \
    --cc=vasily.novikov-BkmlMuIjteXqlBn2x/YWAg@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).