---
name: "audit_flag_to_name"
section: "3"
platform: "linux"
package: "audit"
version: "4.2.1-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/audit_flag_to_name"
---

# audit\_flag\_to\_name(3)

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

## NAME

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

## SYNOPSIS

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

**const char \*audit\_flag\_to\_name(int** *flag***);**

## 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

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

## SEE ALSO

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

## AUTHOR

Steve Grubb
