1AUDIT_NAME_TO_ACTION(3) Linux Audit API AUDIT_NAME_TO_ACTION(3)
2
3
4
6 audit_name_to_action, audit_action_to_name - Convert the action name to
7 the numeric action value to each other
8
10 #include <libaudit.h>
11
12 int audit_name_to_action(const char *action);
13
14 const char *audit_action_to_name(int action);
15
17 audit_name_to_action() converts the action name ("never", "possible",
18 "always") to the numeric action value (AUDIT_NEVER, AUDIT_POSSIBLE, AU‐
19 DIT_ALWAYS). action is the action name.
20
21 audit_action_to_name() converts the numeric action value (AUDIT_NEVER,
22 AUDIT_POSSIBLE, AUDIT_ALWAYS) to the action name ("never", "possible",
23 "always"). action is the numeric action value
24
25
27 audit_name_to_action() returns -1 if an error occurs; otherwise, the
28 return value is the numeric action value.
29
30 audit_action_to_name() returns NULL if an error occurs; otherwise, the
31 return value is the action name.
32
33
35 Steve Grubb
36
37
38
39Red Hat Mar 2022 AUDIT_NAME_TO_ACTION(3)