Linux Kernel
3.7.1
|
#include <linux/audit.h>
#include <linux/slab.h>
#include <linux/tty.h>
Go to the source code of this file.
Data Structures | |
struct | tty_audit_buf |
Functions | |
void | tty_audit_exit (void) |
void | tty_audit_fork (struct signal_struct *sig) |
void | tty_audit_tiocsti (struct tty_struct *tty, char ch) |
int | tty_audit_push_task (struct task_struct *tsk, kuid_t loginuid, u32 sessionid) |
void | tty_audit_add_data (struct tty_struct *tty, unsigned char *data, size_t size) |
void | tty_audit_push (struct tty_struct *tty) |
void tty_audit_add_data | ( | struct tty_struct * | tty, |
unsigned char * | data, | ||
size_t | size | ||
) |
tty_audit_add_data - Add data for TTY auditing.
Audit of from , if necessary.
Definition at line 289 of file tty_audit.c.
tty_audit_exit - Handle a task exit
Make sure all buffered data is written out and deallocate the buffer. Only needs to be called if current->signal->tty_audit_buf != NULL.
Definition at line 129 of file tty_audit.c.
void tty_audit_fork | ( | struct signal_struct * | sig | ) |
tty_audit_fork - Copy TTY audit state for a new task
Set up TTY audit state in from current. needs no locking.
Definition at line 152 of file tty_audit.c.
void tty_audit_push | ( | struct tty_struct * | tty | ) |
tty_audit_push - Push buffered data out
Make sure no audit data is pending for on the current process.
Definition at line 338 of file tty_audit.c.
int tty_audit_push_task | ( | struct task_struct * | tsk, |
kuid_t | loginuid, | ||
u32 | sessionid | ||
) |
tty_audit_push_task - Flush task's pending audit data : task pointer : sender login uid : sender session id
Called with a ref on held. Try to lock sighand and get a reference to the tty audit buffer if available. Flush the buffer or return an appropriate error code.
Definition at line 205 of file tty_audit.c.
void tty_audit_tiocsti | ( | struct tty_struct * | tty, |
char | ch | ||
) |
tty_audit_tiocsti - Log TIOCSTI
Definition at line 162 of file tty_audit.c.