Skip to content
Snippets Groups Projects
audit.c 28 KiB
Newer Older
 * @fmt: format string to use
 * @...: variable parameters matching the format string
 *
 * This is a convenience function that calls audit_log_start,
 * audit_log_vformat, and audit_log_end.  It may be called
 * in any context.
 */
Al Viro's avatar
Al Viro committed
void audit_log(struct audit_context *ctx, gfp_t gfp_mask, int type, 
Linus Torvalds's avatar
Linus Torvalds committed
{
	struct audit_buffer *ab;
	va_list args;

	ab = audit_log_start(ctx, gfp_mask, type);
Linus Torvalds's avatar
Linus Torvalds committed
	if (ab) {
		va_start(args, fmt);
		audit_log_vformat(ab, fmt, args);
		va_end(args);
		audit_log_end(ab);
	}
}

EXPORT_SYMBOL(audit_log_start);
EXPORT_SYMBOL(audit_log_end);
EXPORT_SYMBOL(audit_log_format);
EXPORT_SYMBOL(audit_log);