'\" t .\" Title: audit_log_secctx .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Audit Interfaces .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "AUDIT_LOG_SECCTX" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Audit Interfaces" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" audit_log_secctx \- Converts and logs SELinux context .SH "SYNOPSIS" .HP \w'void\ audit_log_secctx('u .BI "void audit_log_secctx(struct\ audit_buffer\ *\ " "ab" ", u32\ " "secid" ");" .SH "ARGUMENTS" .PP \fIab\fR .RS 4 audit_buffer .RE .PP \fIsecid\fR .RS 4 security number .RE .SH "DESCRIPTION" .PP 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\&. .SH "COPYRIGHT" .br