netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* DROP still returns -EPERM to userspace in OUTPUT chain
@ 2009-05-22  9:44 Jan Engelhardt
  2009-05-23 10:47 ` Pablo Neira Ayuso
  0 siblings, 1 reply; 9+ messages in thread
From: Jan Engelhardt @ 2009-05-22  9:44 UTC (permalink / raw)
  To: Netfilter Developer Mailing List; +Cc: wintre

Hi,


once again, irc snatched this report:

|2009-05-20T20:56 < Wintre:#Netfilter>
|
|Specifically, when I add a DROP rule to the local firewall, send(2)
|starts getting EPERM. The netfilter core code includes
|nf_hook_slow(), which says:
|
| /* Returns 1 if okfn() needs to be executed by the caller,
|  * -EPERM for NF_DROP, 0 otherwise. */
|
|So, this seems kind of crazy to me. I always thought drop was
|supposed to be silent, and changing the return value of send(2),
|well. Bad. Anybody got a link to a discussion of this issue? Or is it
|just a plain old bug?

I agree with the user here. For now, one had to make use of the
“STEAL” target [1] to get the real silent drop behavior for the
OUTPUT chain. Surely that is not the ideal thing either.
Requesting comments from NF maintainers.

[1] http://xtables-addons.git.sourceforge.net/git/gitweb.cgi?p=xtables-addons;a=blob;hb=HEAD;f=extensions/xt_STEAL.c
--
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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2009-06-08 13:56 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-22  9:44 DROP still returns -EPERM to userspace in OUTPUT chain Jan Engelhardt
2009-05-23 10:47 ` Pablo Neira Ayuso
2009-05-23 11:11   ` Jan Engelhardt
2009-05-23 11:43     ` Pablo Neira Ayuso
2009-05-23 13:20       ` Jan Engelhardt
2009-05-23 15:02         ` Pablo Neira Ayuso
2009-05-25 14:56           ` Patrick McHardy
2009-06-07  4:22         ` Mike Acar
2009-06-08 13:56           ` Patrick McHardy

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).