From: "W. Michael Petullo" <mike@flyn.org>
To: netfilter@vger.kernel.org
Subject: Obtaining process which generated packet
Date: Fri, 2 Oct 2015 13:38:37 -0400 [thread overview]
Message-ID: <20151002173837.GA5132@imp.flyn.org> (raw)
I am interested in identifying the process (if any) responsible for
creating a packet from within a netfilter module. Specifically, I would
like to (from within the kernel) inspect the appropriate process's task
structure and make a decision based on what I find. How might I do this?
Another user asked a similar question some time ago:
http://lists.netfilter.org/pipermail/netfilter/2005-December/064225.html
However, I did not find a conclusive answer.
One of the responders stated this of the suggested use of
sk_buff->sock->socket->file->fown_struct->pid:
"...and if using SMP you can't use it at all in netfilter context."
I was unable to follow why this would be the case. Would someone
be willing to elaborate on this too?
Thank you,
--
Mike
:wq
reply other threads:[~2015-10-02 17:38 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20151002173837.GA5132@imp.flyn.org \
--to=mike@flyn.org \
--cc=netfilter@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.