HomeFreeBSD

Rather than allocating all buffer memory for the completed BSM record
rS162466Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

Rather than allocating all buffer memory for the completed BSM record
when allocating the record in the first place, allocate the final buffer
when closing the BSM record. At that point, more size information is
available, so a sufficiently large buffer can be allocated.

This allows the kernel to generate audit records in excess of
MAXAUDITDATA bytes, but is consistent with Solaris's behavior. This only
comes up when auditing command line arguments, in which case we presume
the administrator really does want the data as they have specified the
policy flag to gather them.

Obtained from: TrustedBSD Project
MFC after: 3 days

Details

Provenance
rwatsonAuthored on
Parents
rS162465: Add missing white space in au_to_exec_{args,env}().
Branches
Unknown
Tags
Unknown

Event Timeline