Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
xfrm.c File Reference
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/security.h>
#include <linux/types.h>
#include <linux/netfilter.h>
#include <linux/netfilter_ipv4.h>
#include <linux/netfilter_ipv6.h>
#include <linux/slab.h>
#include <linux/ip.h>
#include <linux/tcp.h>
#include <linux/skbuff.h>
#include <linux/xfrm.h>
#include <net/xfrm.h>
#include <net/checksum.h>
#include <net/udp.h>
#include <linux/atomic.h>
#include "avc.h"
#include "objsec.h"
#include "xfrm.h"

Go to the source code of this file.

Functions

int selinux_xfrm_policy_lookup (struct xfrm_sec_ctx *ctx, u32 fl_secid, u8 dir)
 
int selinux_xfrm_state_pol_flow_match (struct xfrm_state *x, struct xfrm_policy *xp, const struct flowi *fl)
 
int selinux_xfrm_decode_session (struct sk_buff *skb, u32 *sid, int ckall)
 
int selinux_xfrm_policy_alloc (struct xfrm_sec_ctx **ctxp, struct xfrm_user_sec_ctx *uctx)
 
int selinux_xfrm_policy_clone (struct xfrm_sec_ctx *old_ctx, struct xfrm_sec_ctx **new_ctxp)
 
void selinux_xfrm_policy_free (struct xfrm_sec_ctx *ctx)
 
int selinux_xfrm_policy_delete (struct xfrm_sec_ctx *ctx)
 
int selinux_xfrm_state_alloc (struct xfrm_state *x, struct xfrm_user_sec_ctx *uctx, u32 secid)
 
void selinux_xfrm_state_free (struct xfrm_state *x)
 
int selinux_xfrm_state_delete (struct xfrm_state *x)
 
int selinux_xfrm_sock_rcv_skb (u32 isec_sid, struct sk_buff *skb, struct common_audit_data *ad)
 
int selinux_xfrm_postroute_last (u32 isec_sid, struct sk_buff *skb, struct common_audit_data *ad, u8 proto)
 

Variables

atomic_t selinux_xfrm_refcount = ATOMIC_INIT(0)
 

Function Documentation

int selinux_xfrm_decode_session ( struct sk_buff skb,
u32 sid,
int  ckall 
)

Definition at line 160 of file xfrm.c.

int selinux_xfrm_policy_alloc ( struct xfrm_sec_ctx **  ctxp,
struct xfrm_user_sec_ctx uctx 
)

Definition at line 287 of file xfrm.c.

int selinux_xfrm_policy_clone ( struct xfrm_sec_ctx old_ctx,
struct xfrm_sec_ctx **  new_ctxp 
)

Definition at line 306 of file xfrm.c.

int selinux_xfrm_policy_delete ( struct xfrm_sec_ctx ctx)

Definition at line 335 of file xfrm.c.

void selinux_xfrm_policy_free ( struct xfrm_sec_ctx ctx)

Definition at line 327 of file xfrm.c.

int selinux_xfrm_policy_lookup ( struct xfrm_sec_ctx ctx,
u32  fl_secid,
u8  dir 
)

Definition at line 80 of file xfrm.c.

int selinux_xfrm_postroute_last ( u32  isec_sid,
struct sk_buff skb,
struct common_audit_data ad,
u8  proto 
)

Definition at line 445 of file xfrm.c.

int selinux_xfrm_sock_rcv_skb ( u32  isec_sid,
struct sk_buff skb,
struct common_audit_data ad 
)

Definition at line 404 of file xfrm.c.

int selinux_xfrm_state_alloc ( struct xfrm_state x,
struct xfrm_user_sec_ctx uctx,
u32  secid 
)

Definition at line 355 of file xfrm.c.

int selinux_xfrm_state_delete ( struct xfrm_state x)

Definition at line 380 of file xfrm.c.

void selinux_xfrm_state_free ( struct xfrm_state x)

Definition at line 371 of file xfrm.c.

int selinux_xfrm_state_pol_flow_match ( struct xfrm_state x,
struct xfrm_policy xp,
const struct flowi fl 
)

Definition at line 114 of file xfrm.c.

Variable Documentation

atomic_t selinux_xfrm_refcount = ATOMIC_INIT(0)

Definition at line 56 of file xfrm.c.