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

NAME

6       audit_log_user_comm_message - log a user message from a console app
7

SYNOPSIS

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

DESCRIPTION

17       This function will log a message to the audit system using a predefined
18       message format. This function should be used  by  all  non-ELF  console
19       apps  that do not manipulate accounts, groups, or need to log execution
20       of a script. An example would be a Python script  recording  an  event.
21       The function parameters are as follows:
22
23       audit_fd - The fd returned by audit_open
24       type - type of message, ex: AUDIT_USYS_CONFIG, AUDIT_USER_LOGIN
25       message - the message text being sent
26       comm - the program command line name, NULL if unknown
27       hostname - the hostname if known, NULL if unknown
28       addr - The network address of the user, NULL if unknown
29       tty - The tty of the user, if NULL will attempt to figure out
30       result - 1 is "success" and 0 is "failed"
31
32

RETURN VALUE

34       It  returns  the  sequence  number  which  is > 0 on success or <= 0 on
35       error.
36
37

ERRORS

39       This function returns -1 on failure. Examine errno for more info.
40
41

SEE ALSO

43       audit_log_user_message(3),                   audit_log_acct_message(3),
44       audit_log_user_avc_message(3), audit_log_semanage_message(3).
45
46

AUTHOR

48       Steve Grubb
49
50
51
52Red Hat                            July 2016    AUDIT_LOG_USER_COMM_MESSAGE(3)
Impressum