linux/net/bpfilter
Bruno Meneguele 13d0f7b814 net/bpfilter: fix dprintf usage for /dev/kmsg
The bpfilter UMH code was recently changed to log its informative messages to
/dev/kmsg, however this interface doesn't support SEEK_CUR yet, used by
dprintf(). As result dprintf() returns -EINVAL and doesn't log anything.

However there already had some discussions about supporting SEEK_CUR into
/dev/kmsg interface in the past it wasn't concluded. Since the only user of
that from userspace perspective inside the kernel is the bpfilter UMH
(userspace) module it's better to correct it here instead waiting a conclusion
on the interface.

Fixes: 36c4357c63 ("net: bpfilter: print umh messages to /dev/kmsg")
Signed-off-by: Bruno Meneguele <bmeneg@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-03-14 20:58:10 -07:00
..
.gitignore bpfilter: ignore binary files 2018-06-20 09:07:46 +09:00
bpfilter_kern.c signal/bpfilter: Fix bpfilter_kernl to use send_sig not force_sig 2019-05-27 09:36:28 -05:00
bpfilter_umh_blob.S net: bpfilter: change section name of bpfilter UMH blob. 2019-01-16 15:46:46 -08:00
Kconfig init/Kconfig: add CONFIG_CC_CAN_LINK 2019-07-08 02:25:59 +09:00
main.c net/bpfilter: fix dprintf usage for /dev/kmsg 2020-03-14 20:58:10 -07:00
Makefile kbuild: rename hostprogs-y/always to hostprogs/always-y 2020-02-04 01:53:07 +09:00
msgfmt.h net: add skeleton of bpfilter kernel module 2018-05-23 13:23:40 -04:00