From: Pablo Neira Ayuso <pablo@eurodev.net>
To: Marcus Sundberg <marcus@ingate.com>
Cc: netfilter@lists.netfilter.org, netfilter-devel@lists.netfilter.org
Subject: Re: How to obtain process ID that created connection or owns one packet
Date: Tue, 27 Dec 2005 20:28:06 +0100 [thread overview]
Message-ID: <43B195C6.8020704@eurodev.net> (raw)
In-Reply-To: <43B180CA.7060808@ingate.com>
Marcus Sundberg wrote:
> Pablo Neira Ayuso wrote:
>
>> Mikado wrote:
>>
>>> Thanks all! Finally I found the answer in 'struct sk_buff':
>>>
>>> struct sk_buff ( #include <linux/skbuff.h> )
>>> |_struct sock ( #include <net/sock.h> )
>>> |_struct socket ( #include <linux/net.h> )
>>> |_struct file ( #include <linux/fs.h> )
>>> |_struct fown_struct ( #include <linux/fs.h> )
>>> |_int pid
>>
>>
>>
>> Yes, but AFAIK you can only use that in the OUTPUT hook, not in the
>> INPUT path.
>
> ...and if using SMP you can't use it at all in netfilter context.
And there's still some work in progress about this:
http://lwn.net/Articles/157137/
--
Pablo
prev parent reply other threads:[~2005-12-27 19:28 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-19 4:54 Conntrack + Connection owner Mikado 4VN
2005-12-19 17:14 ` Pablo Neira Ayuso
2005-12-19 17:21 ` Pablo Neira Ayuso
2005-12-20 2:49 ` Mikado
2005-12-23 12:27 ` How to obtain process ID that created connection or owns one packet Mikado
2005-12-23 13:36 ` Edmundo Carmona
2005-12-23 14:32 ` Mikado
2005-12-23 16:30 ` Mikado
2005-12-24 14:20 ` Pablo Neira Ayuso
2005-12-26 15:46 ` Mikado
2005-12-27 17:58 ` Marcus Sundberg
2005-12-27 19:28 ` Pablo Neira Ayuso [this message]
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=43B195C6.8020704@eurodev.net \
--to=pablo@eurodev.net \
--cc=marcus@ingate.com \
--cc=netfilter-devel@lists.netfilter.org \
--cc=netfilter@lists.netfilter.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