HomeFreeBSD

setaudit: Add an update mode

Description

setaudit: Add an update mode

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.

Reviewed by: csjp
MFC after: 2 weeks
Sponsored by: Modirum MDPay
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D53672

Details

Provenance
markjAuthored on Mon, Nov 17, 4:45 PM
Reviewer
csjp
Differential Revision
D53672: setaudit: Add an update mode
Parents
rG551191e14e22: setaudit: Fix handling of numeric UIDs
Branches
Unknown
Tags
Unknown