Skip to content

Commit 36c4357

Browse files
lcpdavem330
authored andcommitted
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@suse.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 6b4ddf9 commit 36c4357

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎net/bpfilter/main.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ static void loop(void)
5555

5656
int main(void)
5757
{
58-
debug_fd = open("/dev/console", 00000002);
58+
debug_fd = open("/dev/kmsg", 00000002);
5959
dprintf(debug_fd, "Started bpfilter\n");
6060
loop();
6161
close(debug_fd);

0 commit comments

Comments
 (0)