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

(cherry picked from commit 1238610a27d5bc0914f524296ff587d86eec4c52)

Details

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