All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pablo Neira <pablo@eurodev.net>
To: "Paweł Sikora" <pluto@agmk.net>
Cc: Netfilter Development Mailinglist <netfilter-devel@lists.netfilter.org>
Subject: Re: problems with libnetfilter_conntrack / cntl_test
Date: Thu, 17 Nov 2005 02:38:35 +0100	[thread overview]
Message-ID: <437BDF1B.1050107@eurodev.net> (raw)
In-Reply-To: <200511161809.25277.pluto@agmk.net>

[-- Attachment #1: Type: text/plain, Size: 1284 bytes --]

Paweł Sikora wrote:
> Dnia środa, 16 listopada 2005 16:44, napisałeś:
> 
>>Pawel Sikora wrote:
>>
>>>I have installed a 2.6.14.2 kernel + grsecurity-2.1.7-2.6.14.2-$latest,
>>>libnfnetlink-0.0.13 and libnetfilter_conntrack-0.0.28.
>>>
>>>./ctnl_test fails:
>>>
>>>Test for libnetfilter_conntrack
>>>
>>>NFNETLINK answers: Invalid argument
>>>TEST 1: create conntrack (-22)
>>>TEST 2: dump conntrack table and reset (-22)
>>>TEST 3: dump conntrack table (-22)
>>>TEST 4: get conntrack (-22)
>>>TEST 5: update conntrack (-22)
>>>NFNETLINK answers: Invalid argument
>>>TEST 6: delete conntrack (-22)
>>>nfnl_open: bind(netlink): Operation not permitted
>>>Can't open handler
>>>Test failed with error -2. Errors=7
>>>
>>>Is this a grsec issue?
>>
>>Hard to say, my last contact with grsec was years ago. That output is
>>kind of weird. Could you try reverting the grsec patch?
> 
> 
> currently I get the same error on 2.6.14.2 without grsec on root account.
> first failure occurs at first call of nfnl_talk().

There's nothing wrong in nfnl_talk. It is the kernel that is returning
-EINVAL to userspace. Please apply the patch attached. It enables
debugging. Send me the output since I'm not able to reproduce that
problem that you're reporting. BTW, is that a x86 box?

-- 
Pablo

[-- Attachment #2: debug.patch --]
[-- Type: text/plain, Size: 1032 bytes --]

Index: linux-2.6.14.2/net/netfilter/nfnetlink.c
===================================================================
--- linux-2.6.14.2.orig/net/netfilter/nfnetlink.c	2005-11-11 06:33:12.000000000 +0100
+++ linux-2.6.14.2/net/netfilter/nfnetlink.c	2005-11-17 02:35:21.000000000 +0100
@@ -43,7 +43,7 @@ MODULE_ALIAS_NET_PF_PROTO(PF_NETLINK, NE
 
 static char __initdata nfversion[] = "0.30";
 
-#if 0
+#if 1
 #define DEBUGP(format, args...)	\
 		printk(KERN_DEBUG "%s(%d):%s(): " format, __FILE__, \
 			__LINE__, __FUNCTION__, ## args)
Index: linux-2.6.14.2/net/ipv4/netfilter/ip_conntrack_netlink.c
===================================================================
--- linux-2.6.14.2.orig/net/ipv4/netfilter/ip_conntrack_netlink.c	2005-11-11 06:33:12.000000000 +0100
+++ linux-2.6.14.2/net/ipv4/netfilter/ip_conntrack_netlink.c	2005-11-17 02:35:02.000000000 +0100
@@ -46,7 +46,7 @@ MODULE_LICENSE("GPL");
 
 static char __initdata version[] = "0.90";
 
-#if 0
+#if 1
 #define DEBUGP printk
 #else
 #define DEBUGP(format, args...)

  reply	other threads:[~2005-11-17  1:38 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-16 13:39 problems with libnetfilter_conntrack / cntl_test Paweł Sikora
2005-11-16 15:44 ` Pablo Neira
2005-11-16 17:09   ` Paweł Sikora
2005-11-17  1:38     ` Pablo Neira [this message]
2005-11-17  3:21       ` Paweł Sikora
2005-11-17 12:49         ` Harald Welte

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=437BDF1B.1050107@eurodev.net \
    --to=pablo@eurodev.net \
    --cc=netfilter-devel@lists.netfilter.org \
    --cc=pluto@agmk.net \
    /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.