Skip to content

Commit

Permalink
netfilter: nf_log: add module softdeps
Browse files Browse the repository at this point in the history
xt_LOG has no direct dependency on the syslog-based logger, it relies
on the nf_log core to probe the requested backend.

Now that all syslog-based loggers reside in the same module, we can
just add a soft dependency on nf_log_syslog and let modprobe take
care of it.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
  • Loading branch information
Florian Westphal authored and Pablo Neira Ayuso committed Mar 31, 2021
1 parent e465ccc commit a38b5b5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions net/netfilter/xt_LOG.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,4 @@ MODULE_AUTHOR("Jan Rekorajski <baggins@pld.org.pl>");
MODULE_DESCRIPTION("Xtables: IPv4/IPv6 packet logging");
MODULE_ALIAS("ipt_LOG");
MODULE_ALIAS("ip6t_LOG");
MODULE_SOFTDEP("pre: nf_log_syslog");
1 change: 1 addition & 0 deletions net/netfilter/xt_NFLOG.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,4 @@ static void __exit nflog_tg_exit(void)

module_init(nflog_tg_init);
module_exit(nflog_tg_exit);
MODULE_SOFTDEP("pre: nfnetlink_log");
1 change: 1 addition & 0 deletions net/netfilter/xt_TRACE.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,4 @@ static void __exit trace_tg_exit(void)

module_init(trace_tg_init);
module_exit(trace_tg_exit);
MODULE_SOFTDEP("pre: nf_log_syslog");

0 comments on commit a38b5b5

Please sign in to comment.