Skip to contentSkip to conversation

libnetfilter_queue and pid of process owning packet.

DISCUSSION Gérald Colangelo 2 participants 2 messages Apr 17, 2009 netfilter

lore
Share & tools
lore
#0 lore raw

Hi,

Is there a simple way to get the pid of the process owning the packet throught libnetfilter_queue ?
I know that this parameters would only be revelant in case of OUPUTed packet, but i would be really useful for me ... :)
I have searched the web, browsed snort_inline, honeytrap and moblock source code, but didn't find anything concerning my needs.

Regards,

Signature · 9 lines
Gérald Colangelo 
[email protected] - http://www.yanluo.net

Being a sysadmin means hours of hard labor every day.
Being an abusive sysadmin means hours of fun.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#1 lore raw
Quoted 4 lines · Gérald Colangelo

Is there a simple way to get the pid of the process owning the packet throught libnetfilter_queue ?
I know that this parameters would only be revelant in case of OUPUTed packet, but i would be really useful for me ... :)

Currently not, but I'd take a patch to add fsuid/fsgid support. Check out the nfnetlink_log code for reference if needed.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html