Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
netif.c File Reference
#include <linux/init.h>
#include <linux/types.h>
#include <linux/slab.h>
#include <linux/stddef.h>
#include <linux/kernel.h>
#include <linux/list.h>
#include <linux/notifier.h>
#include <linux/netdevice.h>
#include <linux/rcupdate.h>
#include <net/net_namespace.h>
#include "security.h"
#include "objsec.h"
#include "netif.h"

Go to the source code of this file.

Data Structures

struct  sel_netif


#define SEL_NETIF_HASH_SIZE   64
#define SEL_NETIF_HASH_MAX   1024


int sel_netif_sid (int ifindex, u32 *sid)
 __initcall (sel_netif_init)


struct sel_netif __attribute__

Macro Definition Documentation

#define SEL_NETIF_HASH_MAX   1024

Definition at line 33 of file netif.c.

#define SEL_NETIF_HASH_SIZE   64

Definition at line 32 of file netif.c.

Function Documentation

__initcall ( sel_netif_init  )
int sel_netif_sid ( int  ifindex,
u32 sid 

sel_netif_sid - Lookup the SID of a network interface : the network interface : interface SID

Description: This function determines the SID of a network interface using the fastest method possible. First the interface table is queried, but if an entry can't be found then the policy is queried and the result is added to the table to speedup future queries. Returns zero on success, negative values on failure.

Definition at line 198 of file netif.c.

Variable Documentation