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 (Nobody) <bugs>
Status: Open ---    
Severity: Affects Only Me CC: bkabe, felix.the.red
Priority: Normal Keywords: patch
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
Comment 2 Felix Johnson freebsd_triage 2021-10-11 19:40:03 UTC
FreeBSD started using LOG_SECURITY starting in 2003,
using commit https://cgit.freebsd.org/src/commit/contrib/ipfilter/Makefile?id=3987f181d5e961b3d2b383a988c12923849335ff

Can this be closed?
Comment 3 Taketo Kabe 2021-10-12 00:16:37 UTC
(This is kabe(at)sra-tohoku.co.jp, logging in to Bugzilla)

I guess so. Please close this bug.
Unfortunately I could not confirm as I do not have no FreeBSD compile env now.

Thanks for taking care of 16-year old bugreport.
Comment 4 Graham Perrin freebsd_committer freebsd_triage 2022-10-17 12:34:46 UTC
Keyword: 

    patch
or  patch-ready

– in lieu of summary line prefix: 

    [patch]

* bulk change for the keyword
* summary lines may be edited manually (not in bulk). 

Keyword descriptions and search interface: 

    <https://bugs.freebsd.org/bugzilla/describekeywords.cgi>