This function will log a message to the audit system using a
predefined message format. It should be used for all account
manipulation operations. The function parameters are as follows:
audit_fd - The fd returned by audit_open
type - type of message: AUDIT_USER_CHAUTHTOK for changing any
pgname - program's name, if NULL will attempt to figure out
op - operation. Ex: "adding-user", "changing-finger-info",
"deleting-group". This value should have a dash or underscore
between the words so that report parsers group them together.
name - user's account or group name. If not available use
id - uid or gid that the operation is being performed on. If
the user is unknown, pass a -1 and fill in the name parameter.
This is used only when user is NULL.
host - The hostname if known. If not available pass a NULL.
addr - The network address of the user. If not available pass
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
⟨https://github.com/linux-audit/audit-userspace.git⟩ on 2017-03-13.
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 Nov 2015 AUDIT_LOG_ACCT_MESSAGE(3)