Skip to content

Commit d3a2c3c

Browse files
kaberDavid S. Miller
authored andcommitted
[NETFILTER]: nfnetlink_log: remove fallback to group 0
Don't fallback to group 0 if no instance can be found for the given group. This potentially confuses the listener and is not what the user configured. Also remove the ring buffer spamming that happens when rules are set up before the logging daemon is started. Signed-off-by: Patrick McHardy <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 3b5018d commit d3a2c3c

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

net/netfilter/nfnetlink_log.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -584,12 +584,7 @@ nfulnl_log_packet(unsigned int pf,
584584

585585
inst = instance_lookup_get(li->u.ulog.group);
586586
if (!inst)
587-
inst = instance_lookup_get(0);
588-
if (!inst) {
589-
PRINTR("nfnetlink_log: trying to log packet, "
590-
"but no instance for group %u\n", li->u.ulog.group);
591587
return;
592-
}
593588

594589
plen = 0;
595590
if (prefix)

0 commit comments

Comments
 (0)