[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190705035357.3995-1-glin@suse.com>
Date: Fri, 5 Jul 2019 03:54:58 +0000
From: Gary Lin <GLin@...e.com>
To: "netdev@...r.kernel.org" <netdev@...r.kernel.org>
CC: "netfilter-devel@...r.kernel.org" <netfilter-devel@...r.kernel.org>,
Alexei Starovoitov <ast@...nel.org>,
"David S . Miller" <davem@...emloft.net>,
Daniel Borkmann <daniel@...earbox.net>,
Fabian Vogt <FVogt@...e.com>, Gary Lin <GLin@...e.com>
Subject: [PATCH] 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
Signed-off-by: Gary Lin <glin@...e.com>
---
net/bpfilter/main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/bpfilter/main.c b/net/bpfilter/main.c
index 61ce8454a88e..77396a098fbe 100644
--- a/net/bpfilter/main.c
+++ b/net/bpfilter/main.c
@@ -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);
--
2.22.0
Powered by blists - more mailing lists