From: Patrick McHardy Date: Mon, 10 Mar 2008 23:44:13 +0000 (-0700) Subject: [NETFILTER]: nfnetlink_log: fix EPERM when binding/unbinding and instance 0 exists X-Git-Tag: v2.6.25-rc6~31^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b7047a1c886386b10a103b4fea26678db8b57832;p=pandora-kernel.git [NETFILTER]: nfnetlink_log: fix EPERM when binding/unbinding and instance 0 exists When binding or unbinding to an address family, the res_id is usually set to zero. When logging instance 0 already exists and is owned by a different process, this makes nfunl_recv_config return -EPERM without performing the bind operation. Since no operation on the foreign logging instance itself was requested, this is incorrect. Move bind/unbind commands before the queue instance permissions checks. Also remove an incorrect comment. Signed-off-by: Patrick McHardy Signed-off-by: David S. Miller --- Reading git-diff-tree failed