From: Patrick McHardy <kaber@trash.net>
To: Nir Tzachar <nir.tzachar@gmail.com>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: QUEUE target and capabilities
Date: Mon, 22 Oct 2007 13:23:36 +0200 [thread overview]
Message-ID: <471C8838.7050402@trash.net> (raw)
In-Reply-To: <9b2db90b0710210017i196253f5sedfd5348ea42a03a@mail.gmail.com>
Nir Tzachar wrote:
> 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?
Apparently none besides simply keeping CAP_NET_ADMIN.
prev parent reply other threads:[~2007-10-22 11:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-21 7:17 QUEUE target and capabilities Nir Tzachar
2007-10-22 11:23 ` Patrick McHardy [this message]
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=471C8838.7050402@trash.net \
--to=kaber@trash.net \
--cc=netfilter-devel@vger.kernel.org \
--cc=nir.tzachar@gmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.