All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pablo Neira Ayuso <pablo@netfilter.org>
To: "Gérald Colangelo" <binarym@psycho-hazard.net>
Cc: Jan Engelhardt <jengelh@medozas.de>,
	Netfilter Developer Mailing List
	<netfilter-devel@vger.kernel.org>
Subject: Re: About libnetfilter_queue
Date: Sat, 27 Jun 2009 23:18:10 +0200	[thread overview]
Message-ID: <4A468C92.3010605@netfilter.org> (raw)
In-Reply-To: <20090619141025.GU14944@finnois.psycho-hazard.net>

Gérald Colangelo wrote:
> On Fri, Jun 19, 2009 at 03:52:54PM +0200, Pablo Neira Ayuso wrote:
>> Jan Engelhardt wrote:
>>
>> You still have to keep CAP_NET_ADMIN to make it. And you should get
>> EPERM when sending packets.
> 
> Ok, i didn't know for the CAP_NET_ADMIN.
> But i didn't get EPERM, nfq_set_verdict just returned me a value more than
> 0... perhaps EPERM is stored in errno, but at least nfq_set_verdict() reports
> success.

You're right. We're sending the netlink message to kernel-space without
the NLM_F_ACK flag set, that's why we don't get any error reporting
back. I'm going to look into this.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

      reply	other threads:[~2009-06-27 21:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20090618144650.GL14944@finnois.psycho-hazard.net>
2009-06-19 12:59 ` About libnetfilter_queue Jan Engelhardt
2009-06-19 13:52   ` Pablo Neira Ayuso
2009-06-19 14:10     ` Gérald Colangelo
2009-06-27 21:18       ` Pablo Neira Ayuso [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=4A468C92.3010605@netfilter.org \
    --to=pablo@netfilter.org \
    --cc=binarym@psycho-hazard.net \
    --cc=jengelh@medozas.de \
    --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 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.