diff mbox series

[nf] netfilter: nft_socket: fix module autoload

Message ID 20180607155847.21461-1-pablo@netfilter.org
State Accepted
Delegated to: Pablo Neira
Headers show
Series [nf] netfilter: nft_socket: fix module autoload | expand

Commit Message

Pablo Neira Ayuso June 7, 2018, 3:58 p.m. UTC
Add alias definition for module autoload when adding socket rules.

Fixes: 554ced0a6e29 ("netfilter: nf_tables: add support for native socket matching")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
---
 net/netfilter/nft_socket.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Máté Eckl June 8, 2018, 7:49 a.m. UTC | #1
On Thu, Jun 07, 2018 at 05:58:47PM +0200, Pablo Neira Ayuso wrote:
> Add alias definition for module autoload when adding socket rules.
> 
> Fixes: 554ced0a6e29 ("netfilter: nf_tables: add support for native socket matching")
> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>

Acked-by: Máté Eckl <ecklm94@gmail.com>

> ---
>  net/netfilter/nft_socket.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/net/netfilter/nft_socket.c b/net/netfilter/nft_socket.c
> index f28a0b944087..74e1b3bd6954 100644
> --- a/net/netfilter/nft_socket.c
> +++ b/net/netfilter/nft_socket.c
> @@ -142,3 +142,4 @@ module_exit(nft_socket_module_exit);
>  MODULE_LICENSE("GPL");
>  MODULE_AUTHOR("Máté Eckl");
>  MODULE_DESCRIPTION("nf_tables socket match module");
> +MODULE_ALIAS_NFT_EXPR("socket");

I was wondering, how autoloading is achieved.

> -- 
> 2.11.0
> 
> 
--
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
diff mbox series

Patch

diff --git a/net/netfilter/nft_socket.c b/net/netfilter/nft_socket.c
index f28a0b944087..74e1b3bd6954 100644
--- a/net/netfilter/nft_socket.c
+++ b/net/netfilter/nft_socket.c
@@ -142,3 +142,4 @@  module_exit(nft_socket_module_exit);
 MODULE_LICENSE("GPL");
 MODULE_AUTHOR("Máté Eckl");
 MODULE_DESCRIPTION("nf_tables socket match module");
+MODULE_ALIAS_NFT_EXPR("socket");