mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
netfilter: nfnetlink_log: autoload nf_conntrack_netlink module NFQA_CFG_F_CONNTRACK config flag
This patch enables to load nf_conntrack_netlink module if NFULNL_CFG_F_CONNTRACK config flag is specified. Signed-off-by: Ken-ichirou MATSUZAWA <chamas@h4.dion.ne.jp> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
parent
c932245811
commit
914eebf2f4
1 changed files with 10 additions and 1 deletions
|
@ -927,7 +927,16 @@ nfulnl_recv_config(struct sock *ctnl, struct sk_buff *skb,
|
|||
}
|
||||
|
||||
if (flags & NFULNL_CFG_F_CONNTRACK &&
|
||||
rcu_access_pointer(nfnl_ct_hook) == NULL) {
|
||||
!rcu_access_pointer(nfnl_ct_hook)) {
|
||||
#ifdef CONFIG_MODULES
|
||||
nfnl_unlock(NFNL_SUBSYS_ULOG);
|
||||
request_module("ip_conntrack_netlink");
|
||||
nfnl_lock(NFNL_SUBSYS_ULOG);
|
||||
if (rcu_access_pointer(nfnl_ct_hook)) {
|
||||
ret = -EAGAIN;
|
||||
goto out;
|
||||
}
|
||||
#endif
|
||||
ret = -EOPNOTSUPP;
|
||||
goto out;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue