Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
audit.c File Reference
#include <linux/audit.h>
#include <linux/socket.h>
#include "include/apparmor.h"
#include "include/audit.h"
#include "include/policy.h"

Go to the source code of this file.

Functions

void aa_audit_msg (int type, struct common_audit_data *sa, void(*cb)(struct audit_buffer *, void *))
 
int aa_audit (int type, struct aa_profile *profile, gfp_t gfp, struct common_audit_data *sa, void(*cb)(struct audit_buffer *, void *))
 

Variables

const char *const op_table []
 
const char *const audit_mode_names []
 

Function Documentation

int aa_audit ( int  type,
struct aa_profile profile,
gfp_t  gfp,
struct common_audit_data sa,
void(*)(struct audit_buffer *, void *)  cb 
)

aa_audit - Log a profile based audit event to the audit subsystem : audit type for the message : profile to check against (NOT NULL) : allocation flags to use

See Also
: audit event (NOT NULL) : optional callback fn for type specific fields (MAYBE NULL)

Handle default message switching based off of audit mode flags

Returns: error on failure

Definition at line 184 of file audit.c.

void aa_audit_msg ( int  type,
struct common_audit_data sa,
void(*)(struct audit_buffer *, void *)  cb 
)

aa_audit_msg - Log a message to the audit subsystem

See Also
: audit event structure (NOT NULL) : optional callback fn for type specific fields (MAYBE NULL)

Definition at line 165 of file audit.c.

Variable Documentation

const char* const audit_mode_names[]
Initial value:
= {
"normal",
"quiet_denied",
"quiet",
"noquiet",
"all"
}

Definition at line 76 of file audit.c.

const char* const op_table[]

Definition at line 22 of file audit.c.