Linux Kernel
3.7.1
|
#include <linux/stddef.h>
#include <linux/errno.h>
#include <linux/kernel.h>
#include <linux/kdev_t.h>
#include <linux/spinlock.h>
#include <linux/init.h>
#include <linux/audit.h>
#include <linux/in6.h>
#include <linux/path.h>
#include <linux/key.h>
#include <linux/skbuff.h>
Go to the source code of this file.
Data Structures | |
struct | lsm_network_audit |
struct | common_audit_data |
Macros | |
#define | LSM_AUDIT_DATA_PATH 1 |
#define | LSM_AUDIT_DATA_NET 2 |
#define | LSM_AUDIT_DATA_CAP 3 |
#define | LSM_AUDIT_DATA_IPC 4 |
#define | LSM_AUDIT_DATA_TASK 5 |
#define | LSM_AUDIT_DATA_KEY 6 |
#define | LSM_AUDIT_DATA_NONE 7 |
#define | LSM_AUDIT_DATA_KMOD 8 |
#define | LSM_AUDIT_DATA_INODE 9 |
#define | LSM_AUDIT_DATA_DENTRY 10 |
#define | v4info fam.v4 |
#define | v6info fam.v6 |
Functions | |
int | ipv4_skb_to_auditdata (struct sk_buff *skb, struct common_audit_data *ad, u8 *proto) |
int | ipv6_skb_to_auditdata (struct sk_buff *skb, struct common_audit_data *ad, u8 *proto) |
void | common_lsm_audit (struct common_audit_data *a, void(*pre_audit)(struct audit_buffer *, void *), void(*post_audit)(struct audit_buffer *, void *)) |
#define LSM_AUDIT_DATA_CAP 3 |
Definition at line 48 of file lsm_audit.h.
#define LSM_AUDIT_DATA_DENTRY 10 |
Definition at line 55 of file lsm_audit.h.
#define LSM_AUDIT_DATA_INODE 9 |
Definition at line 54 of file lsm_audit.h.
#define LSM_AUDIT_DATA_IPC 4 |
Definition at line 49 of file lsm_audit.h.
#define LSM_AUDIT_DATA_KEY 6 |
Definition at line 51 of file lsm_audit.h.
#define LSM_AUDIT_DATA_KMOD 8 |
Definition at line 53 of file lsm_audit.h.
#define LSM_AUDIT_DATA_NET 2 |
Definition at line 47 of file lsm_audit.h.
#define LSM_AUDIT_DATA_NONE 7 |
Definition at line 52 of file lsm_audit.h.
#define LSM_AUDIT_DATA_PATH 1 |
Definition at line 46 of file lsm_audit.h.
#define LSM_AUDIT_DATA_TASK 5 |
Definition at line 50 of file lsm_audit.h.
#define v4info fam.v4 |
Definition at line 86 of file lsm_audit.h.
#define v6info fam.v6 |
Definition at line 87 of file lsm_audit.h.
void common_lsm_audit | ( | struct common_audit_data * | a, |
void(*)(struct audit_buffer *, void *) | pre_audit, | ||
void(*)(struct audit_buffer *, void *) | post_audit | ||
) |
common_lsm_audit - generic LSM auditing function : auxiliary audit data : lsm-specific pre-audit callback : lsm-specific post-audit callback
setup the audit buffer for common security information uses callback to print LSM specific information
Definition at line 390 of file lsm_audit.c.