The audit() function is used to write a record to the system audit log. The data pointed to by record is written to the log after a minimal consistency check, with the length parameter specifying the size of the record in bytes. The data should be a well-formed
audit record as described by audit.log(4).
The kernel validates the record header token type and length, and sets the time stamp value before writing the record to the audit log. The kernel does not do any preselection for user-level generated events. If the audit policy is set to include sequence or trailer tokens, the kernel will
append them to the record.
|