Bug 21788

Summary: [PATCH] for syslogd option to allow keeping of kern facility
Product: Base System Reporter: Andre Albsmeier <Andre.Albsmeier>
Component: binAssignee: dwmalone
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.1-STABLE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Andre Albsmeier 2000-10-06 20:50:01 UTC
If a syslogd receives a message via the network socket with the
kern facility, this facility is changed into user. IIRC, this is
done because otherwise ordinary users could generate faked
messages with kern facility.

However, if you don't have ordinary users on your machines and
you control who can log to your syslogd's socket, it might be
desireable not to change the facility. This is very useful if
you run syslogd with -vv and log to a command via a pipe for
further processing.

The patch below adds the -k option to syslogd. If you use it, the
changing of the kern facility won't take place anymore. If you
don't use it, the behaviour is excatly as before so there won't be
any compatibility issues.

The manual page has been updated as well.

How-To-Repeat: 
Watch local syslogd's output when receiving kern messages via
the network socket.
Comment 1 dwmalone freebsd_committer freebsd_triage 2000-10-07 17:20:00 UTC
Responsible Changed
From-To: freebsd-bugs->dwmalone

I'll take a look at this one - the idea seems reasonable at first glance.
Comment 2 dwmalone freebsd_committer freebsd_triage 2000-10-30 11:42:59 UTC
State Changed
From-To: open->closed

Now in -current and -stable.