From: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
To: Matt Helsley <matthltc@us.ibm.com>
Cc: Eric Paris <eparis@redhat.com>,
linux-kernel@vger.kernel.org, malware-list@dmesg.printk.net,
Containers <containers@lists.linux-foundation.org>
Subject: Re: fanotify: the fscking all notification system
Date: Sat, 11 Jul 2009 12:18:16 -0700 [thread overview]
Message-ID: <20090711191816.GA5222@us.ibm.com> (raw)
In-Reply-To: <20090701041039.GB23013@count0.beaverton.ibm.com>
| > struct fanotify_event_metadata {
| > __u32 event_len;
| > __s32 fd;
| > __u32 mask;
| > __u32 f_flags;
| > pid_t pid;
| > pid_t tgid;
| > __u64 cookie;
| > } __attribute__((packed));
|
| Since it passes pids from the kernel to userspace via a socket I suspect
| this needs input from the folks working on pid namespaces. The events may
| need to be dropped if the pid namespace of the event's origin doesn't
| match that of the destination. Otherwise the pid would be ambiguous and
| this interface will only work for tasks in the initial pid namespace.
If we do have the destination pid namespace, we could translate the pid
of the process modifying the file, into the pid namespace of the process
receiving the notification, like we do in mq_notify().
So when a process in an ancestor or unrelated pid namespace modifies the
file, the si_pid would get set to 0.
Sukadev
next prev parent reply other threads:[~2009-07-11 19:17 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-29 20:08 fanotify: the fscking all notification system Eric Paris
2009-06-30 13:22 ` Valdis.Kletnieks
2009-06-30 17:13 ` Bryan Donlan
2009-06-30 17:26 ` Eric Paris
2009-07-07 19:41 ` Valdis.Kletnieks
2009-07-07 20:57 ` Eric Paris
2009-07-01 4:10 ` Matt Helsley
2009-07-11 19:18 ` Sukadev Bhattiprolu [this message]
2009-07-02 15:02 ` Jan Engelhardt
2009-07-02 15:22 ` 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=20090711191816.GA5222@us.ibm.com \
--to=sukadev@linux.vnet.ibm.com \
--cc=containers@lists.linux-foundation.org \
--cc=eparis@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=malware-list@dmesg.printk.net \
--cc=matthltc@us.ibm.com \
/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