From: Mehran Kholdi <semekh.dev@gmail.com>
To: netfilter-devel@vger.kernel.org
Subject: How to get pid of packet sender from NFQUEUE?
Date: Fri, 3 Jan 2014 03:52:21 +0330 [thread overview]
Message-ID: <CAKiFbu9h1an38XXeNDy1ivcEz1vZHaqK+ekmQVXZLUChpJ3pBQ@mail.gmail.com> (raw)
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
next reply other threads:[~2014-01-03 0:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-03 0:22 Mehran Kholdi [this message]
2014-01-03 8:12 ` How to get pid of packet sender from NFQUEUE? Eric Leblond
2014-01-04 16:17 ` Mehran Kholdi
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=CAKiFbu9h1an38XXeNDy1ivcEz1vZHaqK+ekmQVXZLUChpJ3pBQ@mail.gmail.com \
--to=semekh.dev@gmail.com \
--cc=netfilter-devel@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).