AUDIT_LOG_ACCT_MESSAGE
NAMESYNOPSIS
DESCRIPTION
RETURN VALUE
ERRORS
SEE ALSO
AUTHOR
NAME
audit_log_acct_message − log a user account message
SYNOPSIS
#include <libaudit.h>
int audit_log_acct_message(int audit_fd, int type, const char *pgname, const char *op, const char *name, unsigned int id, const char *host, const char *addr, const char *tty, int result)
DESCRIPTION
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 account attributes.
pgname - program’s name, if NULL will attempt to
figure out
op - operation. Ex: "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. 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 a NULL.
tty - The tty of the user, if NULL will attempt to figure
out
result - 1 is "success" and 0 is
"failed"
RETURN VALUE
It returns the sequence number which is > 0 on success or <= 0 on error.
ERRORS
This function returns -1 on failure. Examine errno for more info.
SEE ALSO
audit_log_user_message(3), audit_log_user_comm_message(3), audit_log_user_avc_message(3), audit_log_semanage_message(3).
AUTHOR
Steve Grubb
More Linux Commands
manpages/tune2fs.8.html
tune2fs(8) - adjust tunable filesystem parameters on ext2/ex
tune2fs allows the system administrator to adjust various tunable filesystem parameters on Linux ext2, ext3, or ext4 filesystems. The current values of these op
manpages/changenames.html
changenames
changenames
manpages/default.pa.5.html
default.pa(5) - PulseAudio Sound Server Startup Script......
The PulseAudio sound server interprets the file ~/.config/pulse/default.pa on startup, and when that file doesnt exist /etc/pulse/default.pa. It should contain
manpages/reordercap.1.html
reordercap(1) Reorder input file by timestamp into output fi
Reordercap is a program that reads an input capture file and rewrites the frames to an output capture file, but with the frames sorted by increasing timestamp.
manpages/HTTP::Status.3pm.html
HTTP::Status(3pm) - HTTP Status code processing (Man Page)
HTTP::Status is a library of routines for defining and classifying HTTP status codes for libwww-perl. Status codes are used to encode the overall outcome of a H
manpages/sftp.1.html
sftp(1) - secure file transfer program - Linux manual page
sftp is an interactive file transfer program, similar to ftp(1), which performs all operations over an encrypted ssh-add(1) transport. It may also use many feat
manpages/git-grep.1.html
git-grep(1) - Print lines matching a pattern (Man Page).....
Look for specified patterns in the tracked files in the work tree, blobs registered in the index file, or blobs in given tree objects. Patterns are lists of one
manpages/roff2text.1.html
roff2text(1) - transform roff code into text mode (ManPage)
roff2text transforms roff code into text mode. Print the result to standard output. There are more of these programs for generating other formats of roff input.
manpages/Tcl_ExternalToUtfDString.3.html
Tcl_ExternalToUtfDString(3) - procedures for creating and us
Tcl_GetEncoding finds an encoding given its name. The name may refer to a built-in Tcl encoding, a user-defined encoding registered by calling Tcl_CreateEncodin
manpages/Tcl_LimitAddHandler.3.html
Tcl_LimitAddHandler(3) - manage and check resource limits on
Tcls interpreter resource limit subsystem allows for close control over how much computation time a script may use, and is useful for cases where a program is d
manpages/innstr.3ncurses.html
innstr(3ncurses) - get a string of characters from a curses
innstr.3ncurses - These routines return a string of characters in str, extracted starting at the current cursor position in the named window. Attributes are str
manpages/XkbModActionVMods.3.html
XkbModActionVMods(3) - Returns the vmods1 and vmods2 fields
XkbModActionVMods returns the vmods1 and vmods2 fields of act converted to the vmods format of an Xkb modifier description. XkbModActionVMods.3 (Library - Linux
