| 1 |
.TH "AUDIT_LOG_SEMANAGE_MESSAGE" "3" "Jan 2012" "Red Hat" "Linux Audit API" |
| 2 |
.SH NAME |
| 3 |
audit_log_semanage_message \- log a semanage message |
| 4 |
.SH SYNOPSIS |
| 5 |
.B #include <libaudit.h> |
| 6 |
.sp |
| 7 |
.BI "int audit_log_semanage_message(int" audit_fd, int" type, .B const char *" pgname, const char *" op, const char *" name, unsigned int" id, .B const char *" new_seuser, const char *" new_role, const char *" new_range, .B const char *" old_seuser, const char *" old_role, const char *" old_range, .B const char *" host, const char *" addr, const char *" tty, int" result);" |
| 8 |
|
| 9 |
.SH DESCRIPTION |
| 10 |
|
| 11 |
This function will log a message to the audit system using a predefined |
| 12 |
message format. It should be used for all SE Linux user and role |
| 13 |
manipulation operations. The function parameters are as follows: |
| 14 |
|
| 15 |
.nf |
| 16 |
\fIaudit_fd\fP - The fd returned by audit_open |
| 17 |
\fItype\fP - type of message: AUDIT_ROLE_ASSIGN/REMOVE for changing any SE Linux user or role attributes. |
| 18 |
\fIpgname\fP - program's name |
| 19 |
op - operation. "adding-user", "adding-role", "deleting-user", "deleting-role" |
| 20 |
\fIname\fP - user's account. If not available use NULL. |
| 21 |
id - uid that the operation is being performed on. This is used only when name is NULL. |
| 22 |
\fInew_seuser\fP - the new seuser that the login user is getting |
| 23 |
\fInew_role\fP - the new_role that the login user is getting |
| 24 |
\fInew_range\fP - the new mls range that the login user is getting |
| 25 |
\fIold_seuser\fP - the old seuser that the login usr had |
| 26 |
\fIold_role\fP - the old role that the login user had |
| 27 |
\fIold_range\fP - the old mls range that the login usr had |
| 28 |
\fIhost\fP - The hostname if known |
| 29 |
\fIaddr\fP - The network address of the user |
| 30 |
tty - The tty of the user |
| 31 |
\fIresult\fP - 1 is "success" and 0 is "failed" |
| 32 |
.fi |
| 33 |
|
| 34 |
.SH "RETURN VALUE" |
| 35 |
|
| 36 |
It returns the sequence number which is > 0 on success or <= 0 on error. |
| 37 |
|
| 38 |
.SH "ERRORS" |
| 39 |
|
| 40 |
This function returns \-1 on failure. Examine errno for more info. |
| 41 |
|
| 42 |
.SH "SEE ALSO" |
| 43 |
.BR audit_log_user_message (3), |
| 44 |
.BR audit_log_acct_message (3), |
| 45 |
.BR audit_log_user_avc_message (3), |
| 46 |
.BR audit_log_user_comm_message (3). |
| 47 |
|
| 48 |
.SH AUTHOR |
| 49 |
Steve Grubb |