---
name: "audit_log"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/audit_log"
---

# audit\_log(9)

Log an audit record

## NAME

audit\_log - Log an audit record

## SYNOPSIS

**void audit\_log(struct audit\_context \*** *ctx***, gfp\_t** *gfp\_mask***, int** *type***, const char \*** *fmt***,** *...***);**

## ARGUMENTS

*ctx*

audit context

*gfp\_mask*

type of allocation

*type*

audit message type

*fmt*

format string to use

*...*

variable parameters matching the format string

## DESCRIPTION

This is a convenience function that calls audit\_log\_start, audit\_log\_vformat, and audit\_log\_end. It may be called in any context.

## COPYRIGHT
