This function will log a command to the audit system using a
predefined message format. It encodes the command as the audit
system expects for untrusted strings. This function should be
used by all apps need to record commands. The function parameters
are as follows:
audit_fd - The fd returned by audit_open
type - type of message, ex: AUDIT_USYS_CONFIG, AUDIT_USER_LOGIN
command - the command being logged
tty - The tty of the user, if NULL will attempt to figure out
result - 1 is "success" and 0 is "failed"
This page is part of the audit (Linux Audit) project.
Information about the project can be found at
⟨http://people.redhat.com/sgrubb/audit/⟩. If you have a bug
report for this manual page, send it to email@example.com.
This page was obtained from the project's upstream Git repository
2021-04-01. (At that time, the date of the most recent commit
that was found in the repository was 2021-03-29.) If you
discover any rendering problems in this HTML version of the page,
or you believe there is a better or more up-to-date source for
the page, or you have corrections or improvements to the
information in this COLOPHON (which is not part of the original
manual page), send a mail to firstname.lastname@example.org
Red Hat Feb 2007 AUDIT_LOG_USER_COMMAND(3)