| 1 |
.TH "AUDIT_NAME_TO_FLAG" "3" "Mar 2022" "Red Hat" "Linux Audit API" |
| 2 |
.SH NAME |
| 3 |
audit_name_to_flag \- Convert the rule-matching filter name to the numeric rule-matching filter value |
| 4 |
.SH "SYNOPSIS" |
| 5 |
.nf |
| 6 |
.B #include <libaudit.h> |
| 7 |
.PP |
| 8 |
.BI "int audit_name_to_flag(const char " *flag ); |
| 9 |
.fi |
| 10 |
.SH "DESCRIPTION" |
| 11 |
.BR audit_name_to_flag () |
| 12 |
converts the rule-matching filter name ("task", "exit", "user", "exclude", "filesystem") to the numeric rule-matching filter value (AUDIT_FILTER_TASK, AUDIT_FILTER_EXIT, AUDIT_FILTER_USER, AUDIT_FILTER_EXCLUDE, AUDIT_FILTER_FS). |
| 13 |
.I flag |
| 14 |
is the rule-matching filter name. |
| 15 |
|
| 16 |
.SH "RETURN VALUE" |
| 17 |
|
| 18 |
Returns -1 if an error occurs; otherwise, the return value is the numeric rule-matching filter value. |
| 19 |
|
| 20 |
.SH "SEE ALSO" |
| 21 |
|
| 22 |
.BR audit_flag_to_name (3), |
| 23 |
|
| 24 |
.SH AUTHOR |
| 25 |
Steve Grubb |