Page MenuHomeFreeBSD

setaudit: Add an update mode
ClosedPublic

Authored by markj on Nov 10 2025, 5:06 PM.
Tags
None
Referenced Files
F164713146: D53672.id166143.diff
Mon, Aug 3, 7:43 AM
F164673362: D53672.id166687.diff
Mon, Aug 3, 2:45 AM
Unknown Object (File)
Sun, Aug 2, 5:08 AM
Unknown Object (File)
Sat, Aug 1, 1:59 AM
Unknown Object (File)
Fri, Jul 31, 11:24 PM
Unknown Object (File)
Fri, Jul 31, 3:20 PM
Unknown Object (File)
Tue, Jul 28, 2:44 PM
Unknown Object (File)
Mon, Jul 27, 12:05 AM
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