Page MenuHomeFreeBSD

setaudit: Add an update mode
ClosedPublic

Authored by markj on Nov 10 2025, 5:06 PM.
Tags
None
Referenced Files
F164583019: D53672.diff
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
Unknown Object (File)
Tue, Jul 21, 2:46 PM
Unknown Object (File)
Wed, Jul 15, 6:54 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 Not Applicable
Unit
Tests Not Applicable