Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
lsm_audit.c File Reference
#include <linux/types.h>
#include <linux/stddef.h>
#include <linux/kernel.h>
#include <linux/gfp.h>
#include <linux/fs.h>
#include <linux/init.h>
#include <net/sock.h>
#include <linux/un.h>
#include <net/af_unix.h>
#include <linux/audit.h>
#include <linux/ipv6.h>
#include <linux/ip.h>
#include <net/ip.h>
#include <net/ipv6.h>
#include <linux/tcp.h>
#include <linux/udp.h>
#include <linux/dccp.h>
#include <linux/sctp.h>
#include <linux/lsm_audit.h>

Go to the source code of this file.


int ipv4_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 *))

Function Documentation

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.

int ipv4_skb_to_auditdata ( struct sk_buff skb,
struct common_audit_data ad,
u8 proto 

ipv4_skb_to_auditdata : fill auditdata from skb : the skb : the audit data to fill : the layer 4 protocol

return 0 on success

Definition at line 42 of file lsm_audit.c.