From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: Eric Paris <eparis@redhat.com>
Cc: linux-kernel@vger.kernel.org, malware-list@lists.printk.net,
arjan@infradead.org, bunk@kernel.org, tytso@mit.edu,
tvrtko.ursulin@sophos.com, david@lang.hm, hch@infradead.org,
andi@firstfloor.org, viro@ZenIV.linux.org.uk,
peterz@infradead.org, Jonathan.Press@ca.com, riel@redhat.com,
greg@kroah.com
Subject: Re: [RFC] 0/11 fanotify: fscking all notifiction and file access system (intended for antivirus scanning and file indexers)
Date: Thu, 2 Oct 2008 21:48:46 +0100 [thread overview]
Message-ID: <20081002214846.60560cae@lxorguk.ukuu.org.uk> (raw)
In-Reply-To: <1222975491.28251.202.camel@localhost.localdomain>
> struct fan_sockaddr {
> int version;
> unsigned int mask;
> pid_t pid;
> pid_t tgid;
> int f_flags;
> }
>
> so this will be a binary interface for metadata. Sending the metadata
> about the open fd up the sockaddrs is very slick, but not easily
> extended that I can see. Guess we need to get the metadata right the
> first time.
Usual way socket stuff covers for that is to stick
unsigned int __unused[8];
or similar on the end...
> PF_FAN system. This new fd from connect can then take commands using
> either sendmsg() or setsockopt() or really anything since it doesn't
> have a 'real file' on the backend.
That is the normal socket approach. Eg in traditional BSD interfaces for
IP routing you created an AF_INET socket and frobbed with it.
> So the alternative would be that I could make ALL listener->kernel
> communication go over the fd that came from connect(). Setting a
Probably a lot saner
> includes types and lens. Is is it bad to have a fd whose only
> implemented function is setsockopt?
Not really. Lots of socket types have operations that are essentially
fd = socket(...)
ioctl(fd, ....);
close(fd);
or similar. Traditionally ioctl is used for system changing stuff but
that is just tradition.
next prev parent reply other threads:[~2008-10-02 20:50 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-26 21:07 Eric Paris
2008-09-26 21:34 ` Alan Cox
2008-09-26 21:48 ` [malware-list] " Greg KH
2008-09-26 22:03 ` Eric Paris
2008-10-02 19:24 ` Eric Paris
2008-10-02 20:48 ` Alan Cox [this message]
2008-09-27 6:05 ` david
2008-09-27 11:20 ` Alan Cox
2008-10-06 15:09 ` Pavel Machek
2008-09-27 14:04 ` Eric Paris
[not found] ` <5CB739747AC639489F3E8210950C3E555C39EE@geousmail3.GEO.CORP.HCL.IN>
2008-10-07 17:36 ` [malware-list] [RFC] 0/11 fanotify: fscking all notifiction andfile access system (intended for antivirus scanning and fileindexers) Eric Paris
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=20081002214846.60560cae@lxorguk.ukuu.org.uk \
--to=alan@lxorguk.ukuu.org.uk \
--cc=Jonathan.Press@ca.com \
--cc=andi@firstfloor.org \
--cc=arjan@infradead.org \
--cc=bunk@kernel.org \
--cc=david@lang.hm \
--cc=eparis@redhat.com \
--cc=greg@kroah.com \
--cc=hch@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=malware-list@lists.printk.net \
--cc=peterz@infradead.org \
--cc=riel@redhat.com \
--cc=tvrtko.ursulin@sophos.com \
--cc=tytso@mit.edu \
--cc=viro@ZenIV.linux.org.uk \
/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
all inboxes | Powered by JetHome®