audit_name_to_flag3
Convert the rule-matching filter name to the numeric rule-matching filter value
Usage
#include <libaudit.h>
int audit_name_to_flag(const char *flag);
Overview
audit_name_to_flag() 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). flag is the rule-matching filter name.
Return value
Returns -1 if an error occurs; otherwise, the return value is the numeric rule-matching filter value.
Releases
Unchanged in 3 releases since Debian 12 (Bookworm).