audit_log_secctx(9)

audit_log_secctx9

Converts and logs selinux context

Usage

void audit_log_secctx(struct audit_buffer * ab, u32 secid);

Arguments

ab

audit_buffer

secid

security number

Overview

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.

Releases

3 releases since Debian 7 (Wheezy); the text changed 2 times.

  1. 7
  2. 8
  3. 9

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.