Fix #48: add option ('-K') to disable kernel logging

This patch adds support for disabling kernel logging, opensys().  This
is in addition to the character device validation check, and primarily
for use in container use-cases -- where logging kernel is not needed.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2022-02-13 23:40:06 +01:00
parent 49b99584a4
commit 29e932008d
2 changed files with 25 additions and 12 deletions

View File

@@ -38,7 +38,7 @@
.Nd log systems messages
.Sh SYNOPSIS
.Nm
.Op Fl ?46AdFHknsTtv
.Op Fl ?46AdFHKknsTtv
.Op Fl a Ar addr[/len][:port]
.Op Fl a Ar name[:port]
.Op Fl b Ar addr[:port]
@@ -255,6 +255,9 @@ and wants to monitor when and how it exits.
.It Fl H
When logging remote messages use hostname from the message (if supplied)
instead of using address from which the message was received.
.It Fl K
Disable kernel logging. Useful in container use-cases where kernel logs
har handled by the host system.
.It Fl k
Disable the translation of
messages received with facility