GET_AUDITFAIL_ACTION
NAMESYNOPSIS
DESCRIPTION
RETURN VALUE
ERRORS
EXAMPLES
SEE ALSO
AUTHOR
NAME
get_auditfail_action − Get failure_action tunable value
SYNOPSIS
#include <libaudit.h>
int get_auditfail_action (int *failmode); |
DESCRIPTION
This function gets the failure_action tunable value stored in /etc/libaudit.conf. get_auditfail_action should be called after an audit_open call returns an error to see what action the admin prefers.
The failure_action value found in /etc/libaudit.conf is copied into the failmode argument upon function return. This value should then be used by the calling application to determine what action should be taken when the audit subsystem is unavailable.
RETURN VALUE
Upon success, get_auditfail_action returns a zero, and the failmode argument will hold the failure_action value. The possible values for failure_action are: FAIL_IGNORE (0), FAIL_LOG (1), and FAIL_TERMINATE (2). Upon failure, get_auditfail_action returns a return code of one.
ERRORS
An error is returned if there is an error reading /etc/libaudit.conf or if the failure_action tunable is not found in the file.
EXAMPLES
/* Sample code */
auditfail_t failmode;
if ((fd =
audit_open() ) < 0 ) {
fprintf (stderr, "Cannot open netlink audit
socket");
/* Get the
failure_action */
if ((rc = get_auditfail_action(&failmode)) == 0) {
if (failmode == FAIL_LOG)
fprintf (stderr, "Audit subsystem unavailable");
else if (failmode == FAIL_TERMINATE)
exit (1);
/* If failmode == FAIL_IGNORE, do nothing */
}
}
SEE ALSO
audit_open(3), auditd(8).
AUTHOR
Lisa M. Smith.
More Linux Commands
manpages/XML::PatAct::PatternTempl.3pm.html
XML::PatAct::PatternTempl(3pm) - A pattern module for.......
XML::PatAct::PATTERN is a pattern module for use with PatAct action modules for applying pattern-action lists to XML parses or trees. XML::PatAct::PATTERN ... P
manpages/git-citool.1.html
git-citool(1) - Graphical alternative to git-commit.........
A Tcl/Tk based graphical interface to review modified files, stage them into the index, enter a commit message and record the new commit onto the current branch
manpages/ptx.1.html
ptx(1) - produce a permuted index of file contents (ManPage)
Output a permuted index, including context, of the words in the input files. Mandatory arguments to long options are mandatory for short options too. -A, --auto
manpages/gnu_dev_major.3.html
gnu_dev_major(3) - manage a device number - Linux man page
A device ID consists of two parts: a major ID, identifying the class of the device, and a minor ID, identifying a specific instance of a device in that class. A
manpages/ffmvforce.1.html
ffmvforce(1) force orientation test for force-feedback devic
ffmvforce generates a force in a given direction, indicated by the position of the mouse pointer in relation to the center of the tools window. Beware, the stre
manpages/readprofile.1.html
readprofile(1) - read kernel profiling information (ManPage)
readprofile.1 - The readprofile command uses the /proc/profile information to print ascii data on standard output. The output is organized in three columns: the
manpages/bitmap.n.html
bitmap(n) - Images that display two colors - Linux man page
A bitmap is an image whose pixels can display either of two colors or be transparent. A bitmap image is defined by four things: a background color, a foreground
manpages/systemd-sysctl.service.8.html
systemd-sysctl.service(8) Configure kernel parameters at boo
systemd-sysctl.service is an early-boot service that configures sysctl(8) kernel parameters. See sysctl.d(5) for information about the configuration of this ser
manpages/ppmddumpfont.1.html
ppmddumpfont(1) - dump a Ppmdfont file - Linux manual page
This program is part of Netpbm(1) ppmddumpfont reads a Ppmdfont file on Standard Input and writes to Standard Error a human readable description of the font. (T
manpages/Magick-config.1.html
Magick-config(1) - get information about the installed versi
Magick-config prints the compiler and linker flags required to compile and link programs that use the ImageMagick Application Programmer Interface. EXAMPLES To
manpages/XGetAtomName.3.html
XGetAtomName(3) - create or return atom names (Man Page)....
The XInternAtom function returns the atom identifier associated with the specified atom_name string. If only_if_exists is False, the atom is created if it does
manpages/guards.1.html
guards(1) - select from a list of files guarded by condition
The script reads a configuration file that may contain so-called guards, file names, and comments, and writes those file names that satisfy all guards to standa
