Page MenuHomeFreeBSD

setaudit: Add an update mode
ClosedPublic

Authored by markj on Nov 10 2025, 5:06 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Mar 24, 7:06 PM
Unknown Object (File)
Wed, Mar 18, 11:29 PM
Unknown Object (File)
Tue, Mar 17, 8:59 PM
Unknown Object (File)
Tue, Mar 17, 4:39 AM
Unknown Object (File)
Sun, Mar 15, 4:57 AM
Unknown Object (File)
Tue, Mar 10, 4:00 PM
Unknown Object (File)
Thu, Mar 5, 3:19 PM
Unknown Object (File)
Feb 17 2026, 8:27 PM
Subscribers

Details

Summary

By default, setaudit(8) overwrites the whole audit session state. For
the purpose of overwriting only a single field, e.g., the audit user,
this is inconvenient. Add -U to accomodate this case: when specified,
setaudit(8) will first fetch the current session state block and then
will only overwrite those fields specified on the command line.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 68515
Build 65398: arc lint + arc unit