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

Go to the source code of this file.

Data Structures

struct  tomoyo_log
 

Functions

chartomoyo_init_log (struct tomoyo_request_info *r, int len, const char *fmt, va_list args)
 
void tomoyo_write_log2 (struct tomoyo_request_info *r, int len, const char *fmt, va_list args)
 
void tomoyo_write_log (struct tomoyo_request_info *r, const char *fmt,...)
 
void tomoyo_read_log (struct tomoyo_io_buffer *head)
 
unsigned int tomoyo_poll_log (struct file *file, poll_table *wait)
 

Function Documentation

char* tomoyo_init_log ( struct tomoyo_request_info r,
int  len,
const char fmt,
va_list  args 
)

tomoyo_init_log - Allocate buffer for audit logs.

: Pointer to "struct tomoyo_request_info". : Buffer size needed for and . : The printf()'s format string. : va_list structure for .

Returns pointer to allocated memory.

This function uses kzalloc(), so caller must kfree() if this function didn't return NULL.

Definition at line 243 of file audit.c.

unsigned int tomoyo_poll_log ( struct file file,
poll_table wait 
)

Definition at line 462 of file audit.c.

void tomoyo_read_log ( struct tomoyo_io_buffer head)

tomoyo_read_log - Read an audit log.

: Pointer to "struct tomoyo_io_buffer".

Returns nothing.

Definition at line 432 of file audit.c.

void tomoyo_write_log ( struct tomoyo_request_info r,
const char fmt,
  ... 
)

tomoyo_write_log - Write an audit log.

: Pointer to "struct tomoyo_request_info". : The printf()'s format string, followed by parameters.

Returns nothing.

Definition at line 413 of file audit.c.

void tomoyo_write_log2 ( struct tomoyo_request_info r,
int  len,
const char fmt,
va_list  args 
)

tomoyo_write_log2 - Write an audit log.

: Pointer to "struct tomoyo_request_info". : Buffer size needed for and . : The printf()'s format string. : va_list structure for .

Returns nothing.

Definition at line 360 of file audit.c.