netfilter.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Obtaining process which generated packet
@ 2015-10-02 17:38 W. Michael Petullo
  0 siblings, 0 replies; only message in thread
From: W. Michael Petullo @ 2015-10-02 17:38 UTC (permalink / raw)
  To: netfilter

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-10-02 17:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-02 17:38 Obtaining process which generated packet W. Michael Petullo

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).