Skip to content

Commit a38b5b5

Browse files
Florian Westphalummakynes
authored andcommitted
netfilter: nf_log: add module softdeps
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>
1 parent e465ccc commit a38b5b5

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

net/netfilter/xt_LOG.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,3 +108,4 @@ MODULE_AUTHOR("Jan Rekorajski <baggins@pld.org.pl>");
108108
MODULE_DESCRIPTION("Xtables: IPv4/IPv6 packet logging");
109109
MODULE_ALIAS("ipt_LOG");
110110
MODULE_ALIAS("ip6t_LOG");
111+
MODULE_SOFTDEP("pre: nf_log_syslog");

net/netfilter/xt_NFLOG.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,4 @@ static void __exit nflog_tg_exit(void)
7979

8080
module_init(nflog_tg_init);
8181
module_exit(nflog_tg_exit);
82+
MODULE_SOFTDEP("pre: nfnetlink_log");

net/netfilter/xt_TRACE.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,4 @@ static void __exit trace_tg_exit(void)
5252

5353
module_init(trace_tg_init);
5454
module_exit(trace_tg_exit);
55+
MODULE_SOFTDEP("pre: nf_log_syslog");

0 commit comments

Comments
 (0)