AUDIT\_IS\_ENABLED(3) Linux Audit API AUDIT\_IS\_ENABLED(3)

# [NAME](#NAME)

audit\_is\_enabled - judge whether auditing is enabled or not

# [SYNOPSIS](#SYNOPSIS)

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

```
int audit_is_enabled(int fd);
```

# [DESCRIPTION](#DESCRIPTION)

**audit\_is\_enabled**() judges whether auditing is enabled or not. *fd* must have been returned by [**audit\_open**(3)](/man/os/audit/audit_open.3).

# [RETURN VALUE](#RETURN_VALUE)

This function will return 0 if auditing is NOT enabled and 1 if enabled, and -1 on error.

# [SEE ALSO](#SEE_ALSO)

[**audit\_set\_enabled**(3)](/man/os/audit/audit_set_enabled.3).

# [AUTHOR](#AUTHOR)

Steve Grubb

May 2021 Red Hat

---

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