Skip to contentSkip to conversation

net: bpfilter: print umh messages to /dev/kmsg

PATCH Applied Gary Lin 2 participants 2 messages Jul 5, 2019 – Jul 8, 2019

Subsystems (3)
lore
Share & tools
lore

Gary Lin

author
#0 lore raw

PATCH 1/1 net: bpfilter: print umh messages to /dev/kmsg

bpfilter_umh currently printed all messages to /dev/console and this might interfere the user activity(*).

This commit changes the output device to /dev/kmsg so that the messages from bpfilter_umh won't show on the console directly.

(*) https://bugzilla.suse.com/show_bug.cgi?id=1140221

---
 net/bpfilter/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/bpfilter/main.c +1 -1
index 61ce8454a88e..77396a098fbe 100644
@@ -55,7 +55,7 @@ static void loop(void)
 
 int main(void)
 {
-	debug_fd = open("/dev/console", 00000002);
+	debug_fd = open("/dev/kmsg", 00000002);
 	dprintf(debug_fd, "Started bpfilter\n");
 	loop();
 	close(debug_fd);
Signature · 1 line
2.22.0