[Bug 282271] praudit -n still resolves uids/gids

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 22 Oct 2024 14:12:58 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=282271

            Bug ID: 282271
           Summary: praudit -n still resolves uids/gids
           Product: Base System
           Version: 14.1-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: knan-bfo@modirum.com

man praudit(1) says 

     -n      Do not convert user and group IDs to their names but leave in
             their numeric forms.

yet this doesn't seem to work. uids are still resolved to names. This is
unhelpful when audit files are shipped to other machines.

example: 

cat <audit file> | praudit -n

header_ex,131,11,execve(2),0,10.4.15.10,Tue Oct 22 06:00:14 2024, + 43 msec
exec arg,wc,-l
path,/usr/bin/wc
attribute,555,root,wheel,3566801450,67953,0
subject,-1,root,wheel,root,wheel,48335,0,0,0.0.0.0
return,success,0
trailer,131


# freebsd-version -ukr
14.1-RELEASE
14.1-RELEASE
14.1-RELEASE-p2

-- 
You are receiving this mail because:
You are the assignee for the bug.