logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

audit_name_to_flag - Convert the rule-matching filter name to the numeric rule-matching filter value

Author

Steve Grubb Red Hat Mar 2022 AUDIT_NAME_TO_FLAG(3)

Description

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.

Name

audit_name_to_flag - Convert the rule-matching filter name to the numeric rule-matching filter value

Return Value

Returns -1 if an error occurs; otherwise, the return value is the numeric rule-matching filter value.

See Also

audit_flag_to_name(3),

Synopsis

#include<libaudit.h>intaudit_name_to_flag(constchar*flag);

See Also