netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How to get pid of packet sender from NFQUEUE?
@ 2014-01-03  0:22 Mehran Kholdi
  2014-01-03  8:12 ` Eric Leblond
  2014-01-04 16:17 ` Mehran Kholdi
  0 siblings, 2 replies; 3+ messages in thread
From: Mehran Kholdi @ 2014-01-03  0:22 UTC (permalink / raw)
  To: netfilter-devel

So, I've got my code in userland (using netfilter_queue) that tries to
handle packets according to different attributes (sort of a firewall).
Is it possible to get the pid of sender program?
I'm aware that it is possible to apply pid-based rules with iptables
directly, but how could I access that property in the NFQUEUE?

Thanks,
-- Mehran

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-01-04 16:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-03  0:22 How to get pid of packet sender from NFQUEUE? Mehran Kholdi
2014-01-03  8:12 ` Eric Leblond
2014-01-04 16:17 ` Mehran Kholdi

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