Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
avtab.h File Reference

Go to the source code of this file.

Data Structures

struct  avtab_key
 
struct  avtab_datum
 
struct  avtab_node
 
struct  avtab
 

Macros

#define AVTAB_ALLOWED   0x0001
 
#define AVTAB_AUDITALLOW   0x0002
 
#define AVTAB_AUDITDENY   0x0004
 
#define AVTAB_AV   (AVTAB_ALLOWED | AVTAB_AUDITALLOW | AVTAB_AUDITDENY)
 
#define AVTAB_TRANSITION   0x0010
 
#define AVTAB_MEMBER   0x0020
 
#define AVTAB_CHANGE   0x0040
 
#define AVTAB_TYPE   (AVTAB_TRANSITION | AVTAB_MEMBER | AVTAB_CHANGE)
 
#define AVTAB_ENABLED_OLD   0x80000000 /* reserved for used in cond_avtab */
 
#define AVTAB_ENABLED   0x8000 /* reserved for used in cond_avtab */
 
#define MAX_AVTAB_HASH_BITS   11
 
#define MAX_AVTAB_HASH_BUCKETS   (1 << MAX_AVTAB_HASH_BITS)
 

Functions

int avtab_init (struct avtab *)
 
int avtab_alloc (struct avtab *, u32)
 
struct avtab_datumavtab_search (struct avtab *h, struct avtab_key *k)
 
void avtab_destroy (struct avtab *h)
 
void avtab_hash_eval (struct avtab *h, char *tag)
 
int avtab_read_item (struct avtab *a, void *fp, struct policydb *pol, int(*insert)(struct avtab *a, struct avtab_key *k, struct avtab_datum *d, void *p), void *p)
 
int avtab_read (struct avtab *a, void *fp, struct policydb *pol)
 
int avtab_write_item (struct policydb *p, struct avtab_node *cur, void *fp)
 
int avtab_write (struct policydb *p, struct avtab *a, void *fp)
 
struct avtab_nodeavtab_insert_nonunique (struct avtab *h, struct avtab_key *key, struct avtab_datum *datum)
 
struct avtab_nodeavtab_search_node (struct avtab *h, struct avtab_key *key)
 
struct avtab_nodeavtab_search_node_next (struct avtab_node *node, int specified)
 
void avtab_cache_init (void)
 
void avtab_cache_destroy (void)
 

Macro Definition Documentation

#define AVTAB_ALLOWED   0x0001

Definition at line 30 of file avtab.h.

#define AVTAB_AUDITALLOW   0x0002

Definition at line 31 of file avtab.h.

#define AVTAB_AUDITDENY   0x0004

Definition at line 32 of file avtab.h.

#define AVTAB_AV   (AVTAB_ALLOWED | AVTAB_AUDITALLOW | AVTAB_AUDITDENY)

Definition at line 33 of file avtab.h.

#define AVTAB_CHANGE   0x0040

Definition at line 36 of file avtab.h.

#define AVTAB_ENABLED   0x8000 /* reserved for used in cond_avtab */

Definition at line 39 of file avtab.h.

#define AVTAB_ENABLED_OLD   0x80000000 /* reserved for used in cond_avtab */

Definition at line 38 of file avtab.h.

#define AVTAB_MEMBER   0x0020

Definition at line 35 of file avtab.h.

#define AVTAB_TRANSITION   0x0010

Definition at line 34 of file avtab.h.

#define AVTAB_TYPE   (AVTAB_TRANSITION | AVTAB_MEMBER | AVTAB_CHANGE)

Definition at line 37 of file avtab.h.

#define MAX_AVTAB_HASH_BITS   11

Definition at line 87 of file avtab.h.

#define MAX_AVTAB_HASH_BUCKETS   (1 << MAX_AVTAB_HASH_BITS)

Definition at line 88 of file avtab.h.

Function Documentation

int avtab_alloc ( struct avtab ,
u32   
)

Definition at line 252 of file avtab.c.

void avtab_cache_destroy ( void  )

Definition at line 553 of file avtab.c.

void avtab_cache_init ( void  )

Definition at line 546 of file avtab.c.

void avtab_destroy ( struct avtab h)

Definition at line 222 of file avtab.c.

void avtab_hash_eval ( struct avtab h,
char tag 
)

Definition at line 286 of file avtab.c.

int avtab_init ( struct avtab )

Definition at line 245 of file avtab.c.

struct avtab_node* avtab_insert_nonunique ( struct avtab h,
struct avtab_key key,
struct avtab_datum datum 
)
read

Definition at line 98 of file avtab.c.

int avtab_read ( struct avtab a,
void fp,
struct policydb pol 
)

Definition at line 460 of file avtab.c.

int avtab_read_item ( struct avtab a,
void fp,
struct policydb pol,
int(*)(struct avtab *a, struct avtab_key *k, struct avtab_datum *d, void *p insert,
void p 
)

Definition at line 326 of file avtab.c.

struct avtab_datum* avtab_search ( struct avtab h,
struct avtab_key k 
)
read

Definition at line 128 of file avtab.c.

struct avtab_node* avtab_search_node ( struct avtab h,
struct avtab_key key 
)
read

Definition at line 163 of file avtab.c.

struct avtab_node* avtab_search_node_next ( struct avtab_node node,
int  specified 
)
read

Definition at line 194 of file avtab.c.

int avtab_write ( struct policydb p,
struct avtab a,
void fp 
)

Definition at line 524 of file avtab.c.

int avtab_write_item ( struct policydb p,
struct avtab_node cur,
void fp 
)

Definition at line 504 of file avtab.c.