---
name: "audit_log_secctx"
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_secctx"
---

# audit\_log\_secctx(9)

Converts and logs SELinux context

## NAME

audit\_log\_secctx - Converts and logs SELinux context

## SYNOPSIS

**void audit\_log\_secctx(struct audit\_buffer \*** *ab***, u32** *secid***);**

## ARGUMENTS

*ab*

audit\_buffer

*secid*

security number

## DESCRIPTION

This is a helper function that calls security\_secid\_to\_secctx to convert secid to secctx and then adds the (converted) SELinux context to the audit log by calling audit\_log\_format, thus also preventing leak of internal secid to userspace. If secid cannot be converted audit\_panic is called.

## COPYRIGHT
