audit_log_user_semanage_message − log a semanage message


#include <libaudit.h>

int audit_log_user_semanage_message(int audit_fd, int type, const char *pgname, const char *op, const char *name, unsigned int id, const char *new_seuser, const char *new_role, const char *new_range, const char *old_seuser, const char *old_role, const char *old_range, const char *host, const char *addr, const char *tty, int result)


This function will log a message to the audit system using a predefined message format. It should be used for all SE linux user and role manipulation operations. The function parameters are as follows:

audit_fd - The fd returned by audit_open
type - type of message: AUDIT_USER_ROLE_CHANGE for changing any SE Linux user or role attributes.
pgname - program’s name
op - operation. "adding user", "changing finger info", "deleting group"
name - user’s account or group name. If not available use NULL.
id - uid or gid that the operation is being performed on. This is used only when user is NULL.
new_seuser - the new seuser that the login user is getting
new_role - the new_role that the login user is getting
new_range - the new mls range that the login user is getting
old_seuser - the old seuser that the login usr had
old_role - the old role that the login user had
old_range - the old mls range that the login usr had
host - The hostname if known
addr - The network address of the user
tty - The tty of the user
result - 1 is "success" and 0 is "failed"


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


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


audit_log_user_message(3), audit_log_acct_message(3), audit_log_user_avc_message(3), audit_log_user_comm_message(3).


Steve Grubb

More Linux Commands

slk_set(3ncurses) - curses soft label routines (Man Page)...
The slk* functions manipulate the set of soft function-key labels that exist on many terminals. For those terminals that do not have soft labels, curses takes o

gnutls_x509_rdn_get_by_oid(3) - API function (Man Page).....
This function will return the name of the given Object identifier, of the RDN sequence. The name will be encoded using the rules from RFC2253. RETURNS On succes

POSIX(3pm) - Perl interface to IEEE Std 1003.1 (Man Page)...
The POSIX module permits you to access all (or nearly all) the standard POSIX 1003.1 identifiers. Many of these identifiers have been given Perl-ish interfaces.

glTexCoord1f(3gl) - set the current texture coordinates.....
glTexCoord specifies texture coordinates in one, two, three, or four dimensions. glTexCoord1 sets the current texture coordinates to (s, 0, 0, 1); a call to glT

fgetspent(3) - get shadow password file entry (Man Page)....
Long ago it was considered safe to have encrypted passwords openly visible in the password file. When computers got faster and people got more security-consciou

glBlendEquation(3gl) - set the blend equation (Man Page)....
The blend equation determines how a new pixel (the source color) is combined with a pixel already in the framebuffer (the destination color). GL_MIN sets the bl

ldap_matchingrule_free(3) - Schema definition handling routi
These routines are used to parse schema definitions in the syntax defined in RFC 4512 into structs and handle these structs. These routines handle four kinds of

Tcl_SetObjLength(3) - manipulate Tcl objects as strings.....
The procedures described in this manual entry allow Tcl objects to be manipulated as string values. They use the internal representation of the object to store

pptpsetup(8) - Point-to-Point Tunneling Protocol setup......
PPTP Client is a Linux, FreeBSD, NetBSD and OpenBSD client for the proprietary Microsoft Point-to-Point Tunneling Protocol, PPTP. This script configures PPTP Cl

feof(3) - check and reset stream status - Linux manual page
The function clearerr() clears the end-of-file and error indicators for the stream pointed to by stream. The function feof() tests the end-of-file indicator for

SDL_JoystickName(3) - Get joystick name - Linux manual page
Get the implementation dependent name of joystick. The index parameter refers to the Nth joystick on the system. RETURN VALUE Returns a char pointer to the joys

perl5143delta(1) what is new for perl v5.14.3 (Man Page)....
This document describes differences between the 5.14.2 release and the 5.14.3 release. If you are upgrading from an earlier release such as 5.12.0, first read p

We can't live, work or learn in freedom unless the software we use is free.