Bug 246918

Summary: audit.log(5) reference to non-existing man pages
Product: Documentation Reporter: Shivank Garg <shivankgarg98>
Component: Manual PagesAssignee: freebsd-bugs (Nobody) <bugs>
Status: Open ---    
Severity: Affects Some People CC: doc, felix.the.red, pauamma, shivankgarg98
Priority: --- Keywords: easy, patch
Version: Latest   
Hardware: Any   
OS: Any   
URL: https://www.freebsd.org/cgi/man.cgi?query=audit.log&apropos=0&sektion=5&manpath=FreeBSD+12.1-stable&arch=default&format=html
Attachments:
Description Flags
audit.log(5) patch none

Description Shivank Garg 2020-06-01 19:43:05 UTC
There seems to be an issue with the audit.log(5) manpage, under the section "Expanded Header Token". It says: A 32-bit extended "header" token can be created using au_to_header32_ex(3); a 64-bit extended "header" token can be created using au_to_header64_ex(3).
 - There are no man pages associated with the au_to_header32_ex and au_to_header64_ex.
 - I was able to find the function au_to_header32_ex in the FreeBSD source. But there was no au_to_header64_ex in the source code.
Comment 1 Pau Amma 2020-07-11 19:11:58 UTC
Looks like au_to_header32_ex.3 is supposed to be symlinked to au_token.3, see contrib/openbsm/libbsm/Makefile.am and contrib/openbsm/libbsm/Makefile.in, but this link is missing from MLINKS in 12.1's lib/libbsm/Makefile although present in -current's.

The spurious reference to au_to_header64_ex(3) in contrib/openbsm/man/audit.log.5 (present in both 12.1 and -current) should probably be fixed upstream.
Comment 2 Felix Johnson freebsd_triage 2021-10-17 04:42:23 UTC
Created attachment 228771 [details]
audit.log(5) patch

Change reference from au_to_header64_ex to au_to_header64.
There is no function au_to_header64_ex.
Comment 3 Pau Amma 2021-10-17 13:54:41 UTC
(In reply to Felix Johnson from comment #2)
Is the item missing from MLINKS in 12.1 (see my earlier comment) present in 12-stable for the upcoming 12.3? If not, adding it posthate (perhaps in another bug) would be good, I think.
Comment 4 Felix Johnson freebsd_triage 2021-10-17 15:27:45 UTC
I don't have access to a 12.2 system, but the pages show up online:

au_to_header32_ex:
https://www.freebsd.org/cgi/man.cgi?query=au_to_header32_ex&apropos=0&sektion=0&manpath=FreeBSD+12.2-RELEASE&arch=default&format=html

au_to_header64:
https://www.freebsd.org/cgi/man.cgi?query=au_to_header64&apropos=0&sektion=0&manpath=FreeBSD+12.2-RELEASE&arch=default&format=html

I couldn't find MLINKS in any of the contrib/openbsm Makefiles.
Comment 5 Pau Amma 2021-10-17 15:56:34 UTC
(In reply to Felix Johnson from comment #4)
MLINKS is defined in /usr/src/lib/libbsm/Makefile. Also, I just checked on my 12.2 and it looks like it was MFC'd between 12.1 and 12.2. So that part is moot as well.