Bug 88780

Summary: [patch] Baseline ipmon(8) uses LOG_LOCAL0 syslog, not LOG_SECURITY as mentioned in manpage
Product: Base System Reporter: Taketo Kabe <kabe>
Component: binAssignee: freebsd-bugs mailing list <bugs>
Status: Open ---    
Severity: Affects Only Me    
Priority: Normal    
Version: 6.0-RELEASE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Taketo Kabe 2005-11-10 08:20:18 UTC
Current ipmon(8) is documented to use LOG_SECURITY syslog facility
when invoked as `ipmon -s', but
FreeBSD 6.0 baseline (and probably earlier versions) source code
still is using LOG_LOCAL0.

ipf(8) installed from ports should not have this problem; only
the baseline source has this problem.

How-To-Repeat: - Compile the full source, including userland (make buildworld)
- cd /usr/src/sbin/ipf/ipmon
- make clean
- make
  The diags will say
cc -O2 -fno-strict-aliasing -pipe  -DLOGFAC=LOG_LOCAL0
                                     ^^^^^^^^^^^^^^^^^

Also setting "pass log all" in /etc/ipf.conf and enabling the ipfilter
will log packets in /var/log/messages (LOG_LOCAL0),
not /var/log/security (LOG_SECURITY).
Comment 1 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 08:01:38 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped