From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net] net: bpfilter: fix iptables failure if bpfilter_umh is disabled Date: Mon, 05 Nov 2018 17:13:21 -0800 (PST) Message-ID: <20181105.171321.294466712176893792.davem@davemloft.net> References: <20181105133141.31621-1-ap420073@gmail.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, daniel@iogearbox.net, ast@kernel.org, pablo@netfilter.org, fw@strlen.de To: ap420073@gmail.com Return-path: Received: from shards.monkeyblade.net ([23.128.96.9]:37402 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725910AbeKFKfz (ORCPT ); Tue, 6 Nov 2018 05:35:55 -0500 In-Reply-To: <20181105133141.31621-1-ap420073@gmail.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Taehee Yoo Date: Mon, 5 Nov 2018 22:31:41 +0900 > When iptables command is executed, ip_{set/get}sockopt() try to upload > bpfilter.ko if bpfilter is enabled. if it couldn't find bpfilter.ko, > command is failed. > bpfilter.ko is generated if CONFIG_BPFILTER_UMH is enabled. > ip_{set/get}sockopt() only checks CONFIG_BPFILTER. > So that if CONFIG_BPFILTER is enabled and CONFIG_BPFILTER_UMH is disabled, > iptables command is always failed. > > test config: > CONFIG_BPFILTER=y > # CONFIG_BPFILTER_UMH is not set > > test command: > %iptables -L > iptables: No chain/target/match by that name. > > Fixes: d2ba09c17a06 ("net: add skeleton of bpfilter kernel module") > Signed-off-by: Taehee Yoo Applied, thanks Taehee-ssi.