From: "Nir Tzachar" <nir.tzachar@gmail.com>
To: netfilter-devel@vger.kernel.org
Subject: QUEUE target and capabilities
Date: Sun, 21 Oct 2007 09:17:28 +0200 [thread overview]
Message-ID: <9b2db90b0710210017i196253f5sedfd5348ea42a03a@mail.gmail.com> (raw)
Hello.
I am writing an application which uses the QUEUE target, and
encountered a simple problem. My goal is to run the application
without root privileges. That is, start the program under root, call
ipq_create_handle, and then drop privileges.
However, as far as I can tell, I cannot communicate with the netlink
socket of netfilter unless the process has the CAP_NET_ADMIN
capability (I may be wrong, but I am basing this on:
/usr/src/linux/net/netfilter/nfnetlink.c:204: if
(security_netlink_recv(skb, CAP_NET_ADMIN))
).
So, is there a way to use the QUEUE target _after_ dropping privilages?
thanks.
next reply other threads:[~2007-10-21 7:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-21 7:17 Nir Tzachar [this message]
2007-10-22 11:23 ` QUEUE target and capabilities Patrick McHardy
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=9b2db90b0710210017i196253f5sedfd5348ea42a03a@mail.gmail.com \
--to=nir.tzachar@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).