File: audit_name_to_action.3

package info (click to toggle)
audit 1%3A3.0.9-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 6,916 kB
  • sloc: ansic: 57,158; sh: 5,100; python: 2,938; makefile: 1,494; sed: 32
file content (32 lines) | stat: -rw-r--r-- 1,035 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
.TH "AUDIT_NAME_TO_ACTION" "3" "Mar 2022" "Red Hat" "Linux Audit API"
.SH NAME
audit_name_to_action, audit_action_to_name \- Convert the action name to the numeric action value to each other
.SH "SYNOPSIS"
.nf
.B #include <libaudit.h>
.PP
.BI "int audit_name_to_action(const char " *action );
.PP
.BI "const char *audit_action_to_name(int " action );
.fi
.SH "DESCRIPTION"
.BR audit_name_to_action ()
converts the action name ("never", "possible", "always") to the numeric action value (AUDIT_NEVER, AUDIT_POSSIBLE, AUDIT_ALWAYS).
.I action
is the action name.
.PP
.BR audit_action_to_name ()
converts the numeric action value (AUDIT_NEVER, AUDIT_POSSIBLE, AUDIT_ALWAYS) to the action name ("never", "possible", "always").
.I action
is the numeric action value

.SH "RETURN VALUE"

.BR audit_name_to_action ()
returns -1 if an error occurs; otherwise, the return value is the numeric action value.
.PP
.BR audit_action_to_name ()
returns NULL if an error occurs; otherwise, the return value is the action name.

.SH AUTHOR
Steve Grubb