AUDIT\_FLAG\_TO\_NAME(3) Linux Audit API AUDIT\_FLAG\_TO\_NAME(3)

# [NAME](#NAME)

audit\_flag\_to\_name - Convert the numeric rule-matching filter value to the rule-matching filter name

# [SYNOPSIS](#SYNOPSIS)

```
#include <libaudit.h>
```

```
const char *audit_flag_to_name(int flag);
```

# [DESCRIPTION](#DESCRIPTION)

**audit\_flag\_to\_name**() converts the numeric rule-matching filter value (AUDIT\_FILTER\_TASK, AUDIT\_FILTER\_EXIT, AUDIT\_FILTER\_USER, AUDIT\_FILTER\_EXCLUDE, AUDIT\_FILTER\_FS) to the rule-matching filter name ("task", "exit", "user", "exclude", "filesystem"). *flag* is the numeric rule-matching filter value.

# [RETURN VALUE](#RETURN_VALUE)

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

# [SEE ALSO](#SEE_ALSO)

[**audit\_name\_to\_flag**(3)](/man/os/audit/audit_name_to_flag.3),

# [AUTHOR](#AUTHOR)

Steve Grubb

Mar 2022 Red Hat

---

Document: audit_flag_to_name(3) from audit 4.2.1-r3 (Chainguard OS)
Source: https://github.com/linux-audit/audit-userspace
