Debian Codegraph @

docs/audit_name_to_action.3

raw
1 .TH "AUDIT_NAME_TO_ACTION" "3" "Mar 2022" "Red Hat" "Linux Audit API"
2 .SH NAME
3 audit_name_to_action, audit_action_to_name \- Convert the action name to the numeric action value to each other
4 .SH "SYNOPSIS"
5 .nf
6 .B #include <libaudit.h>
7 .PP
8 .BI "int audit_name_to_action(const char " *action );
9 .PP
10 .BI "const char *audit_action_to_name(int " action );
11 .fi
12 .SH "DESCRIPTION"
13 .BR audit_name_to_action ()
14 converts the action name ("never", "possible", "always") to the numeric action value (AUDIT_NEVER, AUDIT_POSSIBLE, AUDIT_ALWAYS).
15 .I action
16 is the action name.
17 .PP
18 .BR audit_action_to_name ()
19 converts the numeric action value (AUDIT_NEVER, AUDIT_POSSIBLE, AUDIT_ALWAYS) to the action name ("never", "possible", "always").
20 .I action
21 is the numeric action value
22
23 .SH "RETURN VALUE"
24
25 .BR audit_name_to_action ()
26 returns -1 if an error occurs; otherwise, the return value is the numeric action value.
27 .PP
28 .BR audit_action_to_name ()
29 returns NULL if an error occurs; otherwise, the return value is the action name.
30
31 .SH AUTHOR
32 Steve Grubb