* 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
* Re: How to get pid of packet sender from NFQUEUE? 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 1 sibling, 0 replies; 3+ messages in thread From: Eric Leblond @ 2014-01-03 8:12 UTC (permalink / raw) To: Mehran Kholdi; +Cc: netfilter-devel Hello, On Fri, 2014-01-03 at 03:52 +0330, Mehran Kholdi wrote: > 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? You can't for now. Patches to access to UID GID have been made available recently: http://www.spinics.net/lists/netfilter-devel/msg29355.html I don't think it should be too complex to propose the same for PID. BR, -- Eric Leblond <eric@regit.org> Blog: https://home.regit.org/ ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to get pid of packet sender from NFQUEUE? 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 1 sibling, 0 replies; 3+ messages in thread From: Mehran Kholdi @ 2014-01-04 16:17 UTC (permalink / raw) To: netfilter-devel Anybody having a clue on that? ^ 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).