1AUDIT_LOG_USER_MESSAGE(3)       Linux Audit API      AUDIT_LOG_USER_MESSAGE(3)
2
3
4

NAME

6       audit_log_user_message - log a general user message
7

SYNOPSIS

9       #include <libaudit.h>
10
11       int audit_log_user_message(int audit_fd, int type, const char *message,
12       const char *hostname, const char *addr, const char *tty, int result)
13
14

DESCRIPTION

16       This function will log a message to the audit system using a predefined
17       message  format.  This function should be used by all console apps that
18       do not manipulate accounts or groups. The function  parameters  are  as
19       follows:
20
21       audit_fd - The fd returned by audit_open
22       type - type of message, ex: AUDIT_USYS_CONFIG, AUDIT_USER_LOGIN
23       message - the message text being sent
24       hostname - the hostname if known, NULL if unknown
25       addr - The network address of the user, NULL if unknown
26       tty - The tty of the user, if NULL will attempt to figure out
27       result - 1 is "success" and 0 is "failed"
28

RETURN VALUE

30       It  returns  the  sequence  number  which  is > 0 on success or <= 0 on
31       error.
32
33

ERRORS

35       This function returns -1 on failure. Examine errno for more info.
36
37

SEE ALSO

39       audit_log_user_comm_message(3),              audit_log_acct_message(3),
40       audit_log_user_avc_message(3), audit_log_semanage_message(3).
41
42

AUTHOR

44       Steve Grubb
45
46
47
48Red Hat                            Oct 2006          AUDIT_LOG_USER_MESSAGE(3)
Impressum