audit_log_acct_message − log a user account message
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)
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"
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.
More Linux Commands
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
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
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.
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
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
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
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.
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
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
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
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